clippy fix: calls to drop with a value that implements Copy

Dropping a copy leaves the original intact

See:
https://rust-lang.github.io/rust-clippy/master/index.html#drop_copy

I assume the `drop` was used to silence a 'unused variable' warning,
so I silenced it by other means.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-08-08 10:01:41 +02:00 committed by Wolfgang Bumiller
parent de6337ae6d
commit b4b186c544

View File

@ -226,7 +226,9 @@ impl AcceptBuilder {
_ = shutdown_future => break,
};
#[cfg(not(feature = "rate-limited-stream"))]
drop(peer);
{
let _ = &peer;
}
sock.set_nodelay(true).unwrap();
let _ = proxmox_sys::linux::socket::set_tcp_keepalive(