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.
This commit is contained in:
Emil Engler
2023-09-06 17:40:34 +02:00
parent 212336728c
commit d6a7ebe88f

View File

@@ -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))?,