projects
/
crypto_lab1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cypher -> Cipher.
[crypto_lab1.git]
/
lab1_rust
/
src
/
end_point.rs
diff --git
a/lab1_rust/src/end_point.rs
b/lab1_rust/src/end_point.rs
index
cb67226
..
9492d95
100644
(file)
--- 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()
}
pub fn close(&mut self) -> IoResult<()> {
self.end_point.close()
}
@@
-257,6
+258,7
@@
impl EndPoint {
EndPoint { socket: socket, current_timestamp: 0 , variant: variant}
}
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());
fn close(&mut self) -> IoResult<()> {
try!(self.socket.close_read());
try!(self.socket.close_write());