From f41c55f9f7b9b4b74b35e9db2516a70b05c21d2f Mon Sep 17 00:00:00 2001 From: xenor Date: Mon, 19 Sep 2016 17:45:58 +0200 Subject: [PATCH] Instead of calling handle() a second time in line 26, I used a reference to the value obtained in line 23. --- examples/echo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/echo.rs b/examples/echo.rs index cf441e5d2..38eb9044d 100644 --- a/examples/echo.rs +++ b/examples/echo.rs @@ -23,7 +23,7 @@ fn main() { let handle = l.handle(); // Create a TCP listener which will listen for incoming connections - let socket = TcpListener::bind(&addr, &l.handle()).unwrap(); + let socket = TcpListener::bind(&addr, &handle).unwrap(); // Once we've got the TCP listener, inform that we have it println!("Listening on: {}", addr);