From e10104a55b7dfd2ec96d18ff05bef8a5ea0b4ee4 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Tue, 9 Apr 2024 08:27:19 +1200 Subject: [PATCH] fix test compile error --- chorus-lib/src/ip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chorus-lib/src/ip.rs b/chorus-lib/src/ip.rs index 8080293..b1cf527 100644 --- a/chorus-lib/src/ip.rs +++ b/chorus-lib/src/ip.rs @@ -156,9 +156,9 @@ mod test { #[test] fn test_hashed_ip() { let ipaddr: std::net::IpAddr = "127.0.0.1".parse().unwrap(); - println!("HashedIP={}", HashedIp::new(ipaddr).unwrap()); + println!("HashedIP={}", HashedIp::new(ipaddr)); let socketaddr = std::net::SocketAddr::new(ipaddr, 80); - println!("HashedPEER={}", HashedPeer::new(socketaddr).unwrap()); + println!("HashedPEER={}", HashedPeer::new(socketaddr)); } }