Skip to content

Commit 620d8a8

Browse files
hoshinolinajannau
authored andcommitted
rust: sync: lock: Make clippy::undocumented_unsafe_blocks happy
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 9030462 commit 620d8a8

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
@@ -211,8 +211,8 @@ impl<T: ?Sized, B: Backend> Guard<'_, T, B> {
211211
// SAFETY: The caller owns the lock, so it is safe to unlock it.
212212
unsafe { B::unlock(self.lock.state.get(), &self.state) };
213213

214-
// SAFETY: The lock was just unlocked above and is being relocked now.
215214
let _relock =
215+
// SAFETY: The lock was just unlocked above and is being relocked now.
216216
ScopeGuard::new(|| unsafe { B::relock(self.lock.state.get(), &mut self.state) });
217217

218218
cb()

0 commit comments

Comments
 (0)