We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389ff08 commit ffbdb8eCopy full SHA for ffbdb8e
commons/zenoh-util/src/net/mod.rs
@@ -11,17 +11,18 @@
11
// Contributors:
12
// ZettaScale Zenoh Team, <[email protected]>
13
//
14
-use std::{
15
- net::{IpAddr, Ipv6Addr},
16
- sync::RwLock,
17
-};
+use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
+#[cfg(unix)]
+use std::sync::RwLock;
18
19
#[cfg(unix)]
20
use lazy_static::lazy_static;
21
22
use pnet_datalink::NetworkInterface;
23
use tokio::net::{TcpSocket, UdpSocket};
24
-use zenoh_core::{zconfigurable, zread, zwrite};
+use zenoh_core::zconfigurable;
25
+use zenoh_core::{zread, zwrite};
26
27
use zenoh_result::zerror;
28
use zenoh_result::{bail, ZResult};
0 commit comments