From b4b186c5447589d453c2c49c3cf1b9f809b83c4a Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 8 Aug 2023 10:01:41 +0200 Subject: [PATCH] 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 --- proxmox-rest-server/src/connection.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxmox-rest-server/src/connection.rs b/proxmox-rest-server/src/connection.rs index 7681f00c..1bec28d3 100644 --- a/proxmox-rest-server/src/connection.rs +++ b/proxmox-rest-server/src/connection.rs @@ -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(