mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Remove unnecessary return
statements.
This commit is contained in:
parent
a9d24810be
commit
9fe1d8aeca
@ -393,7 +393,7 @@ impl<'a> Read for &'a TcpStream {
|
|||||||
if is_wouldblock(&r) {
|
if is_wouldblock(&r) {
|
||||||
self.io.need_read();
|
self.io.need_read();
|
||||||
}
|
}
|
||||||
return r
|
r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +406,7 @@ impl<'a> Write for &'a TcpStream {
|
|||||||
if is_wouldblock(&r) {
|
if is_wouldblock(&r) {
|
||||||
self.io.need_write();
|
self.io.need_write();
|
||||||
}
|
}
|
||||||
return r
|
r
|
||||||
}
|
}
|
||||||
|
|
||||||
fn flush(&mut self) -> io::Result<()> {
|
fn flush(&mut self) -> io::Result<()> {
|
||||||
@ -417,7 +417,7 @@ impl<'a> Write for &'a TcpStream {
|
|||||||
if is_wouldblock(&r) {
|
if is_wouldblock(&r) {
|
||||||
self.io.need_write();
|
self.io.need_write();
|
||||||
}
|
}
|
||||||
return r
|
r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user