Update the report.
[crypto_lab1.git] / lab1_rust / src / end_point.rs
index cb67226..51b55b8 100644 (file)
@@ -8,7 +8,7 @@ use packet::{ Packet, Command, Answer, Error, ReadingResult, PacketType };
 static DEFAULT_TIMEOUT: Option<u64> = Some(500); // [ms].
 
 pub struct Server {
-   acceptor: TcpAcceptor
+   acceptor: TcpAcceptor,
 }
 
 pub struct Client {
@@ -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());