clippy: call drop explicitly
This commit is contained in:
parent
a5e17142de
commit
ab6a39bd34
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue