Skip to content

Commit ea5e4f6

Browse files
committed
fixup! Add native TLS support with tokio-rustls
1 parent 9b54252 commit ea5e4f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

axum/src/serve/listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ fn is_connection_error(e: &io::Error) -> bool {
272272
}
273273

274274
/// A TLS Listener is a simple wrapper to allow axum accept TLS connections natively.
275-
///
275+
///
276276
/// # Examples
277277
///
278278
/// ```rust,no_run

axum/src/serve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ use tower_service::Service;
2323

2424
mod listener;
2525

26-
pub use self::listener::{ConnLimiter, ConnLimiterIo, Listener, ListenerExt, TapIo};
2726
#[cfg(feature = "tokio-rustls")]
2827
pub use self::listener::TlsListener;
28+
pub use self::listener::{ConnLimiter, ConnLimiterIo, Listener, ListenerExt, TapIo};
2929

3030
/// Serve the service with the supplied listener.
3131
///

0 commit comments

Comments
 (0)