mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 15:20:17 +00:00
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,
|
_ = shutdown_future => break,
|
||||||
};
|
};
|
||||||
#[cfg(not(feature = "rate-limited-stream"))]
|
#[cfg(not(feature = "rate-limited-stream"))]
|
||||||
drop(peer);
|
{
|
||||||
|
let _ = &peer;
|
||||||
|
}
|
||||||
|
|
||||||
sock.set_nodelay(true).unwrap();
|
sock.set_nodelay(true).unwrap();
|
||||||
let _ = proxmox_sys::linux::socket::set_tcp_keepalive(
|
let _ = proxmox_sys::linux::socket::set_tcp_keepalive(
|
||||||
|
Loading…
Reference in New Issue
Block a user