From d6a7ebe88faf46afbc7e20fa56a755d3e4977b53 Mon Sep 17 00:00:00 2001 From: Emil Engler Date: Wed, 6 Sep 2023 17:40:34 +0200 Subject: [PATCH] clippy: Allow false positive with redundancies This commit allows a redundant closure call in the regard of clippy warnings, as it is a false positive in our case. --- src/app_server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app_server.rs b/src/app_server.rs index eb7701b..a315daf 100644 --- a/src/app_server.rs +++ b/src/app_server.rs @@ -524,9 +524,11 @@ impl AppServer { use AppPollResult::*; use KeyOutputReason::*; match self.poll(&mut *rx)? { + #[allow(clippy::redundant_closure_call)] SendInitiation(peer) => tx_maybe_with!(peer, || self .crypt .initiate_handshake(peer.lower(), &mut *tx))?, + #[allow(clippy::redundant_closure_call)] SendRetransmission(peer) => tx_maybe_with!(peer, || self .crypt .retransmit_handshake(peer.lower(), &mut *tx))?,