Skip to content

Commit 1ec5f7c

Browse files
committed
fix(allocator): explicit that MutexGuard lifetime is the same as Locked
1 parent 97d433e commit 1ec5f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/src/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<A> Locked<A> {
7878
}
7979
}
8080

81-
pub fn lock(&self) -> spin::MutexGuard<A> {
81+
pub fn lock(&self) -> spin::MutexGuard<'_, A> {
8282
self.inner.lock()
8383
}
8484
}

0 commit comments

Comments
 (0)