Fixes non-binding `let` on a future (ip-echo-server) (#29301)

* Fixes non-binding let on a future (ip-echo-server)

```
warning: non-binding `let` on a future
   --> net-utils/src/ip_echo_server.rs:133:13
    |
133 |             let _ = tcp_stream.shutdown();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider awaiting the future or dropping explicitly with `std::mem::drop`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future
    = note: `-D clippy::let-underscore-future` implied by `-D warnings`
```

* pr: remove let

* pr: ?
This commit is contained in:
Brooks Prumo 2022-12-16 19:17:59 -05:00 committed by GitHub
parent d1cf4ced3d
commit 0281973671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ async fn process_connection(
.await??;
debug!("Connection established to tcp/{}", *tcp_port);
let _ = tcp_stream.shutdown();
tcp_stream.shutdown().await?;
}
}
let response = IpEchoServerResponse {