Skip to content

Commit 5b61b54

Browse files
committed
rust: init: remove unneeded #[allow(clippy::disallowed_names)]
commit d5cc7ab upstream. These few cases, unlike others in the same file, did not need the `allow`. Thus clean them up. Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Trevor Gross <[email protected]> Tested-by: Gary Guo <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent d8c19e1 commit 5b61b54

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rust/kernel/init.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
//! To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
8888
//!
8989
//! ```rust
90-
//! # #![allow(clippy::disallowed_names)]
9190
//! # use kernel::{sync::Mutex, new_mutex, init::PinInit, try_pin_init};
9291
//! #[pin_data]
9392
//! struct DriverData {
@@ -368,7 +367,6 @@ macro_rules! stack_try_pin_init {
368367
/// The syntax is almost identical to that of a normal `struct` initializer:
369368
///
370369
/// ```rust
371-
/// # #![allow(clippy::disallowed_names)]
372370
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
373371
/// # use core::pin::Pin;
374372
/// #[pin_data]
@@ -413,7 +411,6 @@ macro_rules! stack_try_pin_init {
413411
/// To create an initializer function, simply declare it like this:
414412
///
415413
/// ```rust
416-
/// # #![allow(clippy::disallowed_names)]
417414
/// # use kernel::{init, pin_init, init::*};
418415
/// # use core::pin::Pin;
419416
/// # #[pin_data]
@@ -468,7 +465,6 @@ macro_rules! stack_try_pin_init {
468465
/// They can also easily embed it into their own `struct`s:
469466
///
470467
/// ```rust
471-
/// # #![allow(clippy::disallowed_names)]
472468
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
473469
/// # use core::pin::Pin;
474470
/// # #[pin_data]

0 commit comments

Comments
 (0)