mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Make drop method for PinMut's UnsafeFutureObj impl empty
This commit is contained in:
+1
-3
@@ -1240,7 +1240,5 @@ unsafe fn poll(ptr: *mut (), cx: &mut Context) -> Poll<T> {
|
||||
PinMut::new_unchecked(&mut *(ptr as *mut F)).poll(cx)
|
||||
}
|
||||
|
||||
unsafe fn drop(ptr: *mut ()) {
|
||||
drop(PinMut::new_unchecked(&mut *(ptr as *mut F)));
|
||||
}
|
||||
unsafe fn drop(_ptr: *mut ()) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user