From 740953aa65ea9ee73b9dca3f090caf5d72e77a10 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 27 Dec 2015 10:18:30 -0700 Subject: [PATCH] Drop UFCS for set_read_timeout The native method has been gone since 1.4.0 --- src/priv_io.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/priv_io.rs b/src/priv_io.rs index 251760ff..4a821cfb 100644 --- a/src/priv_io.rs +++ b/src/priv_io.rs @@ -30,9 +30,7 @@ pub trait StreamOptions { impl StreamOptions for BufStream> { fn set_read_timeout(&self, timeout: Option) -> io::Result<()> { match self.get_ref().get_ref().0 { - InternalStream::Tcp(ref s) => { - ::set_read_timeout(s, timeout) - } + InternalStream::Tcp(ref s) => s.set_read_timeout(timeout), #[cfg(feature = "unix_socket")] InternalStream::Unix(ref s) => s.set_read_timeout(timeout), }