We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe2a1b commit fe49f26Copy full SHA for fe49f26
src/task/block_on.rs
@@ -154,6 +154,7 @@ where
154
155
fn vtable() -> &'static RawWakerVTable {
156
unsafe fn clone_raw(ptr: *const ()) -> RawWaker {
157
+ #![allow(clippy::redundant_clone)]
158
let arc = ManuallyDrop::new(Arc::from_raw(ptr as *const Parker));
159
mem::forget(arc.clone());
160
RawWaker::new(ptr, vtable())
0 commit comments