Skip to content

Commit

Permalink
bugfix: Remove CallOnDrop from port.rs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
notgull committed Mar 13, 2024
1 parent 4d64fdc commit 7b1e24a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/iocp/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)();
}
}

0 comments on commit 7b1e24a

Please sign in to comment.