summaryrefslogtreecommitdiff
path: root/src/collection/guard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection/guard.rs')
-rw-r--r--src/collection/guard.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/collection/guard.rs b/src/collection/guard.rs
index 0b8a583..70bb3a6 100644
--- a/src/collection/guard.rs
+++ b/src/collection/guard.rs
@@ -5,19 +5,19 @@ use crate::key::Keyable;
use super::LockGuard;
-impl<'key, Guard: Debug, Key: Keyable> Debug for LockGuard<'key, Guard, Key> {
+impl<Guard: Debug, Key: Keyable> Debug for LockGuard<'_, Guard, Key> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Debug::fmt(&**self, f)
}
}
-impl<'key, Guard: Display, Key: Keyable> Display for LockGuard<'key, Guard, Key> {
+impl<Guard: Display, Key: Keyable> Display for LockGuard<'_, Guard, Key> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Display::fmt(&**self, f)
}
}
-impl<'key, Guard, Key: Keyable> Deref for LockGuard<'key, Guard, Key> {
+impl<Guard, Key: Keyable> Deref for LockGuard<'_, Guard, Key> {
type Target = Guard;
fn deref(&self) -> &Self::Target {
@@ -25,19 +25,19 @@ impl<'key, Guard, Key: Keyable> Deref for LockGuard<'key, Guard, Key> {
}
}
-impl<'key, Guard, Key: Keyable> DerefMut for LockGuard<'key, Guard, Key> {
+impl<Guard, Key: Keyable> DerefMut for LockGuard<'_, Guard, Key> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.guard
}
}
-impl<'key, Guard, Key: Keyable> AsRef<Guard> for LockGuard<'key, Guard, Key> {
+impl<Guard, Key: Keyable> AsRef<Guard> for LockGuard<'_, Guard, Key> {
fn as_ref(&self) -> &Guard {
&self.guard
}
}
-impl<'key, Guard, Key: Keyable> AsMut<Guard> for LockGuard<'key, Guard, Key> {
+impl<Guard, Key: Keyable> AsMut<Guard> for LockGuard<'_, Guard, Key> {
fn as_mut(&mut self) -> &mut Guard {
&mut self.guard
}