Skip to content

Commit 119eb61

Browse files
committed
fix new warning
1 parent b4ec70a commit 119eb61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<T> Drop for ControlBlockRef<T> {
7171
debug_assert_eq!(self.senders.load(Ordering::SeqCst), 0);
7272
debug_assert_eq!(self.receivers.load(Ordering::SeqCst), 0);
7373

74-
unsafe { Box::from_raw(&**self as *const ControlBlock<T> as *mut ControlBlock<T>) };
74+
unsafe { drop(Box::from_raw(self.0.as_mut() as *mut ControlBlock<T>)) };
7575
}
7676
}
7777

0 commit comments

Comments
 (0)