diff options
Diffstat (limited to 'examples/echo.rs')
-rw-r--r-- | examples/echo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/echo.rs b/examples/echo.rs index f3068074..d492e07e 100644 --- a/examples/echo.rs +++ b/examples/echo.rs @@ -39,7 +39,7 @@ async fn main() -> Result<(), Box<dyn Error>> { // Next up we create a TCP listener which will listen for incoming // connections. This TCP listener is bound to the address we determined // above and must be associated with an event loop. - let mut listener = TcpListener::bind(&addr).await?; + let listener = TcpListener::bind(&addr).await?; println!("Listening on: {}", addr); loop { |