From 109b93cb450d90ddd6c00e1f8caa6f54d32b6c27 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Sat, 2 Jan 2021 02:18:35 -0700 Subject: [PATCH] Fix format --- examples/http-low-level.rs | 4 +++- src/lib.rs | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/http-low-level.rs b/examples/http-low-level.rs index 00053f3..39bf310 100644 --- a/examples/http-low-level.rs +++ b/examples/http-low-level.rs @@ -14,7 +14,9 @@ use tls_config::tls_config; #[tokio::main(flavor = "current_thread")] async fn main() { let addr = ([127, 0, 0, 1], 3000).into(); - let listener = tls_listener::builder(tls_config()).max_handshakes(10).listen(AddrIncoming::bind(&addr).unwrap()); + let listener = tls_listener::builder(tls_config()) + .max_handshakes(10) + .listen(AddrIncoming::bind(&addr).unwrap()); let svc = service_fn(|_| async { Ok::<_, Infallible>(Response::new(Body::from("Hello, World!"))) }); diff --git a/src/lib.rs b/src/lib.rs index 2aaefba..c25683a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -192,7 +192,6 @@ pub fn builder(server_config: ServerConfig) -> Builder { } } - #[cfg(feature = "tokio-net")] #[cfg_attr(docsrs, doc(cfg(feature = "tokio-net")))] impl AsyncAccept for tokio::net::TcpListener {