Skip to content

Commit 5ae3122

Browse files
authored
Removed mut from http to variable (#154)
It doesn't seem to be needed.
1 parent 53d3e75 commit 5ae3122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_stable/server/graceful-shutdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ We're assuming you have an accept loop for your server, similar to what was show
6666
# let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
6767
let listener = TcpListener::bind(addr).await?;
6868
// specify our HTTP settings (http1, http2, auto all work)
69-
let mut http = http1::Builder::new();
69+
let http = http1::Builder::new();
7070
// the graceful watcher
7171
let graceful = hyper_util::server::graceful::GracefulShutdown::new();
7272
// when this signal completes, start shutdown

0 commit comments

Comments
 (0)