Skip to content

Commit

Permalink
Tidy up code a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
V02460 authored and havarnov committed May 12, 2022
1 parent c8f35ac commit f872040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ where
for (key, vector) in &mut self.inner {
vector.retain(|value| f(key, value));
}
self.inner.retain(|&_, ref v| !v.is_empty());
self.inner.retain(|_, v| !v.is_empty());
}
}

Expand Down Expand Up @@ -1260,11 +1260,11 @@ mod tests {
let mut m2 = MultiMap::new();
m2.insert(1, 2);
m2.insert(2, 3);
assert!(m1 != m2);
assert_ne!(m1, m2);
m2.insert(3, 4);
assert_eq!(m1, m2);
m2.insert(3, 4);
assert!(m1 != m2);
assert_ne!(m1, m2);
m1.insert(3, 4);
assert_eq!(m1, m2);
}
Expand Down

0 comments on commit f872040

Please sign in to comment.