diff --git a/mullvad-relay-selector/src/lib.rs b/mullvad-relay-selector/src/lib.rs index 4c4913c364ee..d069da4bc02d 100644 --- a/mullvad-relay-selector/src/lib.rs +++ b/mullvad-relay-selector/src/lib.rs @@ -331,6 +331,7 @@ impl RelaySelector { /// Returns a random relay and relay endpoint matching the given constraints and with /// preferences applied. + #[cfg_attr(target_os = "android", allow(unused_variables))] fn get_tunnel_endpoint( &self, relay_constraints: &RelayConstraints, @@ -408,6 +409,7 @@ impl RelaySelector { /// Returns an OpenVpn endpoint, should only ever be used when the user has specified the tunnel /// protocol as only OpenVPN. + #[cfg_attr(target_os = "android", allow(dead_code))] fn get_openvpn_endpoint( &self, relay_constraints: &RelayConstraints, @@ -591,6 +593,7 @@ impl RelaySelector { } /// Like [Self::get_tunnel_endpoint_internal] but also selects an entry endpoint if applicable. + #[cfg_attr(target_os = "android", allow(dead_code))] fn get_multihop_tunnel_endpoint_internal( &self, relay_constraints: &RelayConstraints, @@ -680,6 +683,7 @@ impl RelaySelector { /// Returns a tunnel endpoint of any type, should only be used when the user hasn't specified a /// tunnel protocol. + #[cfg_attr(target_os = "android", allow(dead_code))] fn get_any_tunnel_endpoint( &self, relay_constraints: &RelayConstraints, @@ -725,6 +729,7 @@ impl RelaySelector { } // This function ignores the tunnel type constraint on purpose. + #[cfg_attr(target_os = "android", allow(dead_code))] fn preferred_constraints( &self, original_constraints: &RelayConstraints,