From cc382d602abc4cc130a7fb3154c76b574e3c571e Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 18 Sep 2024 22:15:45 +0200 Subject: [PATCH] chore: remove windows cfg --- crates/net/nat/src/net_if.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/net/nat/src/net_if.rs b/crates/net/nat/src/net_if.rs index d93dd8dd582d..10f77b17563e 100644 --- a/crates/net/nat/src/net_if.rs +++ b/crates/net/nat/src/net_if.rs @@ -1,7 +1,5 @@ //! IP resolution on non-host Docker network. -#![cfg(not(target_os = "windows"))] - use std::{io, net::IpAddr}; /// The 'eth0' interface tends to be the default interface that docker containers use to @@ -20,7 +18,6 @@ pub enum NetInterfaceError { } /// Reads IP of OS interface with given name, if exists. -#[cfg(not(target_os = "windows"))] pub fn resolve_net_if_ip(if_name: &str) -> Result { match if_addrs::get_if_addrs() { Ok(ifs) => { @@ -39,9 +36,8 @@ pub fn resolve_net_if_ip(if_name: &str) -> Result { #[cfg(test)] mod tests { - use std::net::Ipv4Addr; - use super::*; + use std::net::Ipv4Addr; #[test] fn read_docker_if_addr() {