diff options
author | xenor <xenorlawl@gmail.com> | 2016-09-19 17:45:58 +0200 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2016-09-20 09:59:09 -0700 |
commit | f41c55f9f7b9b4b74b35e9db2516a70b05c21d2f (patch) | |
tree | 690849a3ef9c5a9b23998ee997e4f984381ac0eb /examples/echo.rs | |
parent | 418a973520bbd485af60f13aef28f1c20d51b888 (diff) |
Instead of calling handle() a second time in line 26, I used a reference to the value obtained in line 23.
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 cf441e5d..38eb9044 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); |