mirror of https://github.com/stjepang/smol
Fix clippy::unused_unit warning in examples
``` warning: unneeded unit expression --> examples/hyper-client.rs:139:25 | 139 | () | ^^ help: remove the final `()` | = note: `#[warn(clippy::unused_unit)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit warning: unneeded unit expression --> examples/hyper-client.rs:147:25 | 147 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit warning: unneeded unit expression --> examples/hyper-server.rs:154:29 | 154 | ... () | ^^ help: remove the final `()` | = note: `#[warn(clippy::unused_unit)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit warning: unneeded unit expression --> examples/hyper-server.rs:162:29 | 162 | ... () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit ```
This commit is contained in:
parent
534ac48a01
commit
9699af3649
|
@ -136,7 +136,6 @@ impl tokio::io::AsyncRead for SmolStream {
|
|||
.poll_read(cx, buf.initialize_unfilled())
|
||||
.map_ok(|size| {
|
||||
buf.advance(size);
|
||||
()
|
||||
})
|
||||
}
|
||||
SmolStream::Tls(s) => {
|
||||
|
@ -144,7 +143,6 @@ impl tokio::io::AsyncRead for SmolStream {
|
|||
.poll_read(cx, buf.initialize_unfilled())
|
||||
.map_ok(|size| {
|
||||
buf.advance(size);
|
||||
()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,6 @@ impl tokio::io::AsyncRead for SmolStream {
|
|||
.poll_read(cx, buf.initialize_unfilled())
|
||||
.map_ok(|size| {
|
||||
buf.advance(size);
|
||||
()
|
||||
});
|
||||
}
|
||||
SmolStream::Tls(s) => {
|
||||
|
@ -159,7 +158,6 @@ impl tokio::io::AsyncRead for SmolStream {
|
|||
.poll_read(cx, buf.initialize_unfilled())
|
||||
.map_ok(|size| {
|
||||
buf.advance(size);
|
||||
()
|
||||
});
|
||||
}
|
||||
SmolStream::Handshake(f) => {
|
||||
|
|
Loading…
Reference in New Issue