diff --git a/benches/bench.rs b/benches/bench.rs
index c407488..c71306d 100644
--- a/benches/bench.rs
+++ b/benches/bench.rs
@@ -16,6 +16,7 @@ fn basics(c: &mut Criterion) {
});
group.bench_function("experimental_owned", |b| {
+ #[allow(clippy::arc_with_non_send_sync)]
let pool = Arc::new(ExperimentalPool::from_iter(&[()]));
b.iter(|| pool.pull_owned())
});
diff --git a/src/experimental.rs b/src/experimental.rs
index 463600d..774576c 100644
--- a/src/experimental.rs
+++ b/src/experimental.rs
@@ -32,10 +32,11 @@ impl FromIterator for Pool {
}
impl Pool {
+ #[allow(clippy::must_use_candidate)]
pub fn pull(&self) -> Option> {
unsafe {
self.freelist.first_free().map(|index| ObjectRef {
- pool: &self,
+ pool: self,
value: (*self.objects[index].get()).assume_init_mut(),
index,
})
@@ -43,6 +44,7 @@ impl Pool {
}
#[cfg(not(loom))]
+ #[allow(clippy::must_use_candidate)]
pub fn pull_owned(self: &Arc) -> Option