Skip to content

Commit 3cffadf

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/sync/condvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ pub struct CondVar {
9393
_pin: PhantomPinned,
9494
}
9595

96-
// SAFETY: `CondVar` only uses a `struct wait_queue_head`, which is safe to use on any thread.
9796
#[allow(clippy::non_send_fields_in_send_ty)]
97+
// SAFETY: `CondVar` only uses a `struct wait_queue_head`, which is safe to use on any thread.
9898
unsafe impl Send for CondVar {}
9999

100100
// SAFETY: `CondVar` only uses a `struct wait_queue_head`, which is safe to use on multiple threads

0 commit comments

Comments
 (0)