From b51e8a45e0717452e9d70bb82a2906f72ec5d4b9 Mon Sep 17 00:00:00 2001 From: "TSM.ID" Date: Mon, 25 May 2026 08:06:25 +0700 Subject: [PATCH] [TSM.ID].[11031972] 3Z FIX: xcu-relay move Ipv4Addr import to #[cfg(test)] scope. Zero Warning. --- xcom-ultra/xcu-relay/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);