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:
Taiki Endo 2022-07-17 21:25:23 +09:00
parent 534ac48a01
commit 9699af3649
2 changed files with 0 additions and 4 deletions

View File

@ -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);
()
})
}
}

View File

@ -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) => {