Remove bound from into_make_service_with_connect_info (#892)

Fixes #859
This commit is contained in:
David Pedersen
2022-03-31 16:49:49 +00:00
committed by GitHub
parent 2e5d56a9b1
commit 21552fe434
7 changed files with 16 additions and 23 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ async fn main() {
let mut app = Router::new()
.route("/", get(handler))
.into_make_service_with_connect_info::<SocketAddr, _>();
.into_make_service_with_connect_info::<SocketAddr>();
loop {
let stream = poll_fn(|cx| Pin::new(&mut listener).poll_accept(cx))