Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnen committed Jan 12, 2023
1 parent 2af12e2 commit 891b8e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,6 @@ impl<'a, T: Eq + Hash + Clone, S: BuildHasher> Iterator for Intersection<'a, T,
self.remaining = min(*count, other_count);
}
}

}

impl<T: Eq + Hash + Clone, S: BuildHasher> FusedIterator for Intersection<'_, T, S> {}
Expand Down
4 changes: 1 addition & 3 deletions tests/test-lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,7 @@ fn test_retain() {
assert_eq!(mset.get(&2), Some(2usize));

let mut mset: MultiSet<_> = [1, 2, 3, 4, 5, 4, 3, 2, 1].iter().cloned().collect();
mset.retain(|&_k, v| {
v == 1
});
mset.retain(|&_k, v| v == 1);

assert_eq!(mset.distinct_elements().len(), 1);
assert_eq!(mset.get(&5), Some(1usize));
Expand Down
2 changes: 1 addition & 1 deletion tests/version-numbers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ fn test_readme_deps() {
#[test]
fn test_html_root_url() {
version_sync::assert_html_root_url_updated!("src/lib.rs");
}
}

0 comments on commit 891b8e9

Please sign in to comment.