From: Ummon Date: Tue, 4 Nov 2014 06:51:33 +0000 (+0100) Subject: Mini cleanup. X-Git-Url: http://git.euphorik.ch/?p=crypto_lab1.git;a=commitdiff_plain;h=148adf7e5ffe25dba11e00b17b29e4eeacec4d3d Mini cleanup. --- diff --git a/src/end_point.rs b/src/end_point.rs index b44afc9..71f217e 100644 --- a/src/end_point.rs +++ b/src/end_point.rs @@ -32,10 +32,10 @@ impl Server { loop { for stream in acceptor.incoming() { match stream { - Err(_) => return, Ok(stream) => spawn(proc() { Server::handle_client(EndPoint { socket: stream, current_timestamp: 0 }); - }) + }), + _ => return } } }