Make drop method for PinMut's UnsafeFutureObj impl empty

This commit is contained in:
Josef Reinhard Brandl
2018-07-01 15:27:53 +02:00
parent dd3b0337ff
commit 4e617291c2
+1 -3
View File
@@ -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 ()) {}
}