Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
tmccombs committed Jan 2, 2021
1 parent 71f9b74 commit 109b93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/http-low-level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"))) });
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 109b93c

Please sign in to comment.