We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb837bd commit 740953aCopy full SHA for 740953a
src/priv_io.rs
@@ -30,9 +30,7 @@ pub trait StreamOptions {
30
impl StreamOptions for BufStream<Box<StreamWrapper>> {
31
fn set_read_timeout(&self, timeout: Option<Duration>) -> io::Result<()> {
32
match self.get_ref().get_ref().0 {
33
- InternalStream::Tcp(ref s) => {
34
- <TcpStream as TcpStreamExt>::set_read_timeout(s, timeout)
35
- }
+ InternalStream::Tcp(ref s) => s.set_read_timeout(timeout),
36
#[cfg(feature = "unix_socket")]
37
InternalStream::Unix(ref s) => s.set_read_timeout(timeout),
38
}
0 commit comments