Skip to content

Commit b657f51

Browse files
committed
rust: sync: lock: Make clippy::undocumented_unsafe_blocks happy
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 3cffadf commit b657f51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/sync/lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ impl<T: ?Sized, B: Backend> Guard<'_, T, B> {
213213
// SAFETY: The caller owns the lock, so it is safe to unlock it.
214214
unsafe { B::unlock(self.lock.state.get(), &self.state) };
215215

216-
// SAFETY: The lock was just unlocked above and is being relocked now.
217216
let _relock =
217+
// SAFETY: The lock was just unlocked above and is being relocked now.
218218
ScopeGuard::new(|| unsafe { B::relock(self.lock.state.get(), &mut self.state) });
219219

220220
cb()

0 commit comments

Comments
 (0)