Skip to content

Commit 9030462

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

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
@@ -92,8 +92,8 @@ pub struct CondVar {
9292
_pin: PhantomPinned,
9393
}
9494

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

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

0 commit comments

Comments
 (0)