Loading ssl/mod.rs +1 −19 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ use std::libc::{c_int, c_void, c_char}; use std::ptr; use std::unstable::finally::Finally; use std::unstable::mutex::{Mutex, MUTEX_INIT}; use std::io::{Stream, Reader, Writer, Decorator}; use std::io::{Stream, Reader, Writer}; use std::vec; use ssl::error::{SslError, SslSessionClosed, StreamEof}; Loading Loading @@ -509,10 +509,6 @@ impl<S: Stream> Reader for SslStream<S> { _ => unreachable!() } } fn eof(&mut self) -> bool { self.stream.eof() } } impl<S: Stream> Writer for SslStream<S> { Loading @@ -535,17 +531,3 @@ impl<S: Stream> Writer for SslStream<S> { self.stream.flush() } } impl<S> Decorator<S> for SslStream<S> { fn inner(self) -> S { self.stream } fn inner_ref<'a>(&'a self) -> &'a S { &self.stream } fn inner_mut_ref<'a>(&'a mut self) -> &'a mut S { &mut self.stream } } Loading
ssl/mod.rs +1 −19 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ use std::libc::{c_int, c_void, c_char}; use std::ptr; use std::unstable::finally::Finally; use std::unstable::mutex::{Mutex, MUTEX_INIT}; use std::io::{Stream, Reader, Writer, Decorator}; use std::io::{Stream, Reader, Writer}; use std::vec; use ssl::error::{SslError, SslSessionClosed, StreamEof}; Loading Loading @@ -509,10 +509,6 @@ impl<S: Stream> Reader for SslStream<S> { _ => unreachable!() } } fn eof(&mut self) -> bool { self.stream.eof() } } impl<S: Stream> Writer for SslStream<S> { Loading @@ -535,17 +531,3 @@ impl<S: Stream> Writer for SslStream<S> { self.stream.flush() } } impl<S> Decorator<S> for SslStream<S> { fn inner(self) -> S { self.stream } fn inner_ref<'a>(&'a self) -> &'a S { &self.stream } fn inner_mut_ref<'a>(&'a mut self) -> &'a mut S { &mut self.stream } }