aboutsummaryrefslogtreecommitdiff
path: root/src/util/wake.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/wake.rs')
-rw-r--r--src/util/wake.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/wake.rs b/src/util/wake.rs
index 001577d..5773937 100644
--- a/src/util/wake.rs
+++ b/src/util/wake.rs
@@ -54,11 +54,7 @@ unsafe fn inc_ref_count<T: Wake>(data: *const ()) {
let arc = ManuallyDrop::new(Arc::<T>::from_raw(data as *const T));
// Now increase refcount, but don't drop new refcount either
- let arc_clone: ManuallyDrop<_> = arc.clone();
-
- // Drop explicitly to avoid clippy warnings
- drop(arc);
- drop(arc_clone);
+ let _arc_clone: ManuallyDrop<_> = arc.clone();
}
unsafe fn clone_arc_raw<T: Wake>(data: *const ()) -> RawWaker {