summaryrefslogtreecommitdiffstats
path: root/examples/print_each_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/print_each_packet.rs')
-rw-r--r--examples/print_each_packet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/print_each_packet.rs b/examples/print_each_packet.rs
index d650b5bd..b3e1b17e 100644
--- a/examples/print_each_packet.rs
+++ b/examples/print_each_packet.rs
@@ -74,7 +74,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// above and must be associated with an event loop, so we pass in a handle
// to our event loop. After the socket's created we inform that we're ready
// to go and start accepting connections.
- let mut listener = TcpListener::bind(&addr).await?;
+ let listener = TcpListener::bind(&addr).await?;
println!("Listening on: {}", addr);
loop {