[TSM.ID].[11031972] 3Z FIX: xcu-relay move Ipv4Addr import to #[cfg(test)] scope. Zero Warning.

This commit is contained in:
TSM.ID
2026-05-25 08:06:25 +07:00
parent 7a02830289
commit b51e8a45e0
+2 -1
View File
@@ -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);