Skip to content

Commit 4e7544f

Browse files
committed
rust: sync: lock: Make clippy::undocumented_unsafe_blocks happy
Signed-off-by: Asahi Lina <[email protected]>
1 parent 581eed6 commit 4e7544f

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

209-
// SAFETY: The lock was just unlocked above and is being relocked now.
210209
let _relock =
210+
// SAFETY: The lock was just unlocked above and is being relocked now.
211211
ScopeGuard::new(|| unsafe { B::relock(self.lock.state.get(), &mut self.state) });
212212

213213
cb();

0 commit comments

Comments
 (0)