mirror of https://github.com/smol-rs/async-lock
chore: Silence clippy
Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
parent
aeb9d8ff8e
commit
df82e5bb5e
|
@ -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)();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue