From 35cf1f2d9079c205140ff85ec740d080dd8d4849 Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 14 Aug 2023 22:42:48 +0900 Subject: [PATCH] chore(tonic): Fix doc test with only default features (#1462) --- tonic/src/transport/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tonic/src/transport/mod.rs b/tonic/src/transport/mod.rs index 1b3b19d83..0f84ddd65 100644 --- a/tonic/src/transport/mod.rs +++ b/tonic/src/transport/mod.rs @@ -18,6 +18,7 @@ //! ## Client //! //! ```no_run +//! # #[cfg(feature = "rustls")] //! # use tonic::transport::{Channel, Certificate, ClientTlsConfig}; //! # use std::time::Duration; //! # use tonic::body::BoxBody; @@ -45,6 +46,7 @@ //! ## Server //! //! ```no_run +//! # #[cfg(feature = "rustls")] //! # use tonic::transport::{Server, Identity, ServerTlsConfig}; //! # use tower::Service; //! # #[cfg(feature = "rustls")]