From b0346304a0944afe77173fda801db05844d71e14 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 24 Oct 2024 15:18:31 +1100 Subject: [PATCH] ci: allow unused variables on conditional code (#17) --- boringtun/src/device/peer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boringtun/src/device/peer.rs b/boringtun/src/device/peer.rs index a5a3e54f..cc2f3ea8 100644 --- a/boringtun/src/device/peer.rs +++ b/boringtun/src/device/peer.rs @@ -102,6 +102,10 @@ impl Peer { } } + #[cfg_attr( + not(any(target_os = "android", target_os = "fuchsia", target_os = "linux")), + allow(unused_variables) + )] pub fn connect_endpoint( &self, port: u16,