Skip to content

Commit 19a2933

Browse files
committed
clippy fixes
1 parent f793c63 commit 19a2933

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neotron-os/src/refcell.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub struct CsRefCellGuard<'a, T> {
9292
parent: &'a CsRefCell<T>,
9393
}
9494

95-
impl<'a, T> Deref for CsRefCellGuard<'a, T> {
95+
impl<T> Deref for CsRefCellGuard<'_, T> {
9696
type Target = T;
9797

9898
fn deref(&self) -> &Self::Target {
@@ -101,14 +101,14 @@ impl<'a, T> Deref for CsRefCellGuard<'a, T> {
101101
}
102102
}
103103

104-
impl<'a, T> DerefMut for CsRefCellGuard<'a, T> {
104+
impl<T> DerefMut for CsRefCellGuard<'_, T> {
105105
fn deref_mut(&mut self) -> &mut Self::Target {
106106
let ptr = self.parent.inner.get();
107107
unsafe { &mut *ptr }
108108
}
109109
}
110110

111-
impl<'a, T> Drop for CsRefCellGuard<'a, T> {
111+
impl<T> Drop for CsRefCellGuard<'_, T> {
112112
fn drop(&mut self) {
113113
// We hold this refcell guard exclusively, so this can't race
114114
self.parent.locked.store(false, Ordering::Release);

0 commit comments

Comments
 (0)