Skip to content

Commit

Permalink
chore: Silence clippy
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Apr 8, 2024
1 parent aeb9d8f commit df82e5b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/mutex.rs
Expand Up @@ -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)();
}
}

0 comments on commit df82e5b

Please sign in to comment.