Fix an invalid cast in the impl of UnsafeFutureObj for Pin<Box<F>>
@@ -230,7 +230,7 @@ if_std! {
unsafe fn drop(ptr: *mut ()) {
#[allow(clippy::cast_ptr_alignment)]
- drop(Box::from_raw(ptr as *mut Pin<Box<T>>));
+ drop(Pin::from(Box::from_raw(ptr as *mut F)));
}
}
