2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-24 13:19:41 +00:00

fix clippy::redundant_clone

This commit is contained in:
k-nasa 2019-10-27 20:34:44 +09:00
parent 7fe2a1bbce
commit fe49f2618f

View file

@ -154,6 +154,7 @@ where
fn vtable() -> &'static RawWakerVTable {
unsafe fn clone_raw(ptr: *const ()) -> RawWaker {
#![allow(clippy::redundant_clone)]
let arc = ManuallyDrop::new(Arc::from_raw(ptr as *const Parker));
mem::forget(arc.clone());
RawWaker::new(ptr, vtable())