Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Feb 12, 2022
1 parent e8c71a4 commit 8e03dd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ impl<K, V, S> HashMap<K, V, S> {
///
/// Note that _all_ `Guard` references provided to access the returned map _must_ be
/// constructed using guards produced by `collector`.
#[must_use]
pub fn with_collector(mut self, collector: Collector) -> Self {
self.collector = collector;
self
Expand Down
2 changes: 1 addition & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ impl<K, V> TreeBin<K, V> {
.is_ok()
{
waiting = true;
let current_thread = Shared::boxed(current(), &collector);
let current_thread = Shared::boxed(current(), collector);
let waiter = self.waiter.swap(current_thread, Ordering::SeqCst, guard);
assert!(waiter.is_null());
}
Expand Down
2 changes: 1 addition & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl<K, V> Table<K, V> {
}

pub(crate) fn new(bins: usize, collector: &Collector) -> Self {
Self::from(vec![Atomic::null(); bins], &collector)
Self::from(vec![Atomic::null(); bins], collector)
}

pub(crate) fn is_empty(&self) -> bool {
Expand Down

0 comments on commit 8e03dd5

Please sign in to comment.