mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
Remove unnecessary return statements.
This commit is contained in:
+3
-3
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user