mirror of https://github.com/smol-rs/polling
bugfix: Remove CallOnDrop from port.rs
CallOnDrop is no longer used in the Windows IOCP backend, and it wasn't being flagged as unused until the latest nightly. In order to fix Windows builds, this commit removes CallOnDrop. Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
4d64fdc572
commit
634a77c264
|
@ -296,11 +296,3 @@ impl<T: CompletionHandle> Drop for OverlappedEntry<T> {
|
|||
drop(unsafe { self.packet() });
|
||||
}
|
||||
}
|
||||
|
||||
struct CallOnDrop<F: FnMut()>(F);
|
||||
|
||||
impl<F: FnMut()> Drop for CallOnDrop<F> {
|
||||
fn drop(&mut self) {
|
||||
(self.0)();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue