From 7436f863324e1390d03b18c6f0a852749706c5ea Mon Sep 17 00:00:00 2001 From: Gabi Date: Mon, 15 Jul 2024 18:52:22 -0300 Subject: [PATCH] chore(connlib): remove warnings for non-proptest tests (#5883) Extracted from #5797 --- rust/connlib/tunnel/src/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/connlib/tunnel/src/client.rs b/rust/connlib/tunnel/src/client.rs index 750dc0167..58c8620e1 100644 --- a/rust/connlib/tunnel/src/client.rs +++ b/rust/connlib/tunnel/src/client.rs @@ -299,17 +299,17 @@ impl ClientState { } } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip4(&self) -> Option { Some(self.interface_config.as_ref()?.ipv4) } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip6(&self) -> Option { Some(self.interface_config.as_ref()?.ipv6) } - #[cfg(test)] + #[cfg(all(test, feature = "proptest"))] pub(crate) fn tunnel_ip_for(&self, dst: IpAddr) -> Option { Some(match dst { IpAddr::V4(_) => self.tunnel_ip4()?.into(),