chore: Silence clippy

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-04-08 10:56:46 -07:00 committed by John Nunley
parent aeb9d8ff8e
commit df82e5bb5e
1 changed files with 0 additions and 9 deletions

View File

@ -756,12 +756,3 @@ impl<T: ?Sized> DerefMut for MutexGuardArc<T> {
unsafe { &mut *self.0.data.get() }
}
}
/// Calls a function when dropped.
struct CallOnDrop<F: Fn()>(F);
impl<F: Fn()> Drop for CallOnDrop<F> {
fn drop(&mut self) {
(self.0)();
}
}