[TSM.ID].[11031972] 3Z FIX: xcu-relay move Ipv4Addr import to #[cfg(test)] scope. Zero Warning.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user