Clean up some things as reported by clippy

This commit is contained in:
Abhishek Chanda
2016-12-21 09:46:32 +00:00
parent 21dfeaccfc
commit 021bb38573
3 changed files with 3 additions and 5 deletions

View File

@ -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]