Little cleanup

This commit is contained in:
Steven Fackler
2018-04-22 19:47:36 -07:00
parent a33bcb8d55
commit 198bf0780b

View File

@@ -33,8 +33,8 @@ impl MessageStream {
}
}
pub fn get_ref(&self) -> &Box<TlsStream> {
self.stream.get_ref()
pub fn get_ref(&self) -> &TlsStream {
&**self.stream.get_ref()
}
pub fn write_message<F, E>(&mut self, f: F) -> result::Result<(), E>