mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-01-05 01:28:10 -08:00
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:
@@ -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))?,
|
||||
|
||||
Reference in New Issue
Block a user