mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 16:58:50 +00:00
Clean up some things as reported by clippy
This commit is contained in:
@ -341,8 +341,7 @@ mod test {
|
||||
let mut map = HashMap::new();
|
||||
let net = Ipv4Network::new(Ipv4Addr::new(127, 0, 0, 1), 16).unwrap();
|
||||
map.insert(net, 137);
|
||||
let out = map.get(&net).unwrap();
|
||||
assert_eq!(137, *out);
|
||||
assert_eq!(137, map[&net]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user