1
0
Fork 0
forked from wry/wry

clippy: call drop explicitly

This commit is contained in:
Julian Orth 2022-10-10 19:01:36 +02:00
parent a5e17142de
commit ab6a39bd34

View file

@ -175,7 +175,7 @@ impl<T, F: Future<Output = T>> Task<T, F> {
unsafe fn dec_ref_count(slf: *const Self) {
if slf.deref().ref_count.fetch_sub(1) == 1 {
Box::from_raw(slf as *mut Self);
drop(Box::from_raw(slf as *mut Self));
}
}