From 7d84ef9064559a29b23ab86036f7ef62b450f90c Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Wed, 13 Jan 2021 18:10:04 +0100 Subject: Allows for erroneous Clippy lints Signed-off-by: Mathias Hall-Andersen --- src/wireguard/handshake/macs.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wireguard/handshake/macs.rs') diff --git a/src/wireguard/handshake/macs.rs b/src/wireguard/handshake/macs.rs index 8d79c5e..f4f5586 100644 --- a/src/wireguard/handshake/macs.rs +++ b/src/wireguard/handshake/macs.rs @@ -141,6 +141,7 @@ impl Generator { pub fn process(&mut self, reply: &CookieReply) -> Result<(), HandshakeError> { let mac1 = self.last_mac1.ok_or(HandshakeError::InvalidState)?; let mut tau = [0u8; SIZE_COOKIE]; + #[allow(clippy::unnecessary_mut_passed)] XOPEN!( &self.cookie_key, // key &reply.f_nonce, // nonce -- cgit v1.2.3-59-g8ed1b