diff --git a/xcom-ultra/xcu-relay/src/lib.rs b/xcom-ultra/xcu-relay/src/lib.rs index 3193695..a678f5c 100644 --- a/xcom-ultra/xcu-relay/src/lib.rs +++ b/xcom-ultra/xcu-relay/src/lib.rs @@ -14,7 +14,7 @@ impl std::fmt::Display for RelayError { impl std::error::Error for RelayError {} use std::collections::HashMap; -use std::net::{IpAddr, Ipv4Addr}; +use std::net::IpAddr; #[derive(Debug, Clone, Copy)] pub struct SocketAddr { pub ip: IpAddr, pub port: u16 } @@ -108,6 +108,7 @@ impl RelayServer { #[cfg(test)] mod tests { use super::*; + use std::net::Ipv4Addr; #[test] fn test_stun() { let s = RelayServer::new(IpAddr::V4(Ipv4Addr::new(1,2,3,4)), 50000, 100);