X-Git-Url: http://git.euphorik.ch/?p=crypto_lab1.git;a=blobdiff_plain;f=lab1_rust%2Fsrc%2Fend_point.rs;fp=lab1_rust%2Fsrc%2Fend_point.rs;h=9492d95fa8ca9a80f8c17de175cf57bf248b38cf;hp=cb672260532ce9e56f6435f387e988e052234102;hb=307b73948c18f26a4ff12fc29f9055397a999f44;hpb=ed4d8f3e7e028bf645089edb775af84e6c3f7bd4 diff --git a/lab1_rust/src/end_point.rs b/lab1_rust/src/end_point.rs index cb67226..9492d95 100644 --- a/lab1_rust/src/end_point.rs +++ b/lab1_rust/src/end_point.rs @@ -83,6 +83,7 @@ impl Client { }}) } + #[allow(dead_code)] pub fn close(&mut self) -> IoResult<()> { self.end_point.close() } @@ -257,6 +258,7 @@ impl EndPoint { EndPoint { socket: socket, current_timestamp: 0 , variant: variant} } + #[allow(dead_code)] fn close(&mut self) -> IoResult<()> { try!(self.socket.close_read()); try!(self.socket.close_write());