forked from proxmox-mirrors/proxmox
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:
parent
de6337ae6d
commit
b4b186c544
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user