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:
parent
7fe2a1bbce
commit
fe49f2618f
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue