fix test compile error

This commit is contained in:
Mike Dilger 2024-04-09 08:27:19 +12:00
parent dd8e345e86
commit e10104a55b

View File

@ -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));
}
}