uses std::net::IpAddr type for Packet.Meta.addr
This commit is contained in:
@@ -37,7 +37,7 @@ fn bench_packet_discard(bencher: &mut Bencher) {
|
||||
.map(|_| {
|
||||
let mut addr = [0u16; 8];
|
||||
thread_rng().fill(&mut addr);
|
||||
addr
|
||||
std::net::IpAddr::from(addr)
|
||||
})
|
||||
.collect();
|
||||
|
||||
|
Reference in New Issue
Block a user