1
Fork 0

Fix stragglers

This commit is contained in:
Steven Fackler 2020-03-11 18:32:18 -07:00
parent 07443f17d4
commit 4bad27a467
5 changed files with 9 additions and 9 deletions

View file

@ -202,7 +202,7 @@ impl File {
match self.0 {} match self.0 {}
} }
pub fn can_read_vectored(&self) -> bool { pub fn is_read_vectored(&self) -> bool {
match self.0 {} match self.0 {}
} }

View file

@ -47,7 +47,7 @@ impl TcpStream {
match self.0 {} match self.0 {}
} }
pub fn can_read_vectored(&self) -> bool { pub fn is_read_vectored(&self) -> bool {
match self.0 {} match self.0 {}
} }

View file

@ -12,7 +12,7 @@ impl AnonPipe {
match self.0 {} match self.0 {}
} }
pub fn can_read_vectored(&self) -> bool { pub fn is_read_vectored(&self) -> bool {
match self.0 {} match self.0 {}
} }

View file

@ -151,7 +151,7 @@ impl TcpStream {
#[inline] #[inline]
pub fn is_read_vectored(&self) -> bool { pub fn is_read_vectored(&self) -> bool {
self.inner.inner.can_read_vectored() self.inner.inner.is_read_vectored()
} }
pub fn write(&self, buf: &[u8]) -> io::Result<usize> { pub fn write(&self, buf: &[u8]) -> io::Result<usize> {

View file

@ -614,8 +614,8 @@ impl io::Read for UnixStream {
} }
#[inline] #[inline]
fn can_read_vectored(&self) -> bool { fn is_read_vectored(&self) -> bool {
io::Read::can_read_vectored(&&*self) io::Read::is_read_vectored(&&*self)
} }
#[inline] #[inline]
@ -635,8 +635,8 @@ impl<'a> io::Read for &'a UnixStream {
} }
#[inline] #[inline]
fn can_read_vectored(&self) -> bool { fn is_read_vectored(&self) -> bool {
self.0.can_read_vectored() self.0.is_read_vectored()
} }
#[inline] #[inline]
@ -677,7 +677,7 @@ impl<'a> io::Write for &'a UnixStream {
#[inline] #[inline]
fn is_write_vectored(&self) -> bool { fn is_write_vectored(&self) -> bool {
self.0.can_write_vectored() self.0.is_write_vectored()
} }
fn flush(&mut self) -> io::Result<()> { fn flush(&mut self) -> io::Result<()> {