Skip to content

Commit 8a7ab9c

Browse files
ojedasmb49
authored andcommitted
rust: init: remove unneeded #[allow(clippy::disallowed_names)]
BugLink: https://bugs.launchpad.net/bugs/2107437 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Noah Wager <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 86443a7 commit 8a7ab9c

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 {
@@ -367,7 +366,6 @@ macro_rules! stack_try_pin_init {
367366
/// The syntax is almost identical to that of a normal `struct` initializer:
368367
///
369368
/// ```rust
370-
/// # #![allow(clippy::disallowed_names)]
371369
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
372370
/// # use core::pin::Pin;
373371
/// #[pin_data]
@@ -412,7 +410,6 @@ macro_rules! stack_try_pin_init {
412410
/// To create an initializer function, simply declare it like this:
413411
///
414412
/// ```rust
415-
/// # #![allow(clippy::disallowed_names)]
416413
/// # use kernel::{init, pin_init, init::*};
417414
/// # use core::pin::Pin;
418415
/// # #[pin_data]
@@ -467,7 +464,6 @@ macro_rules! stack_try_pin_init {
467464
/// They can also easily embed it into their own `struct`s:
468465
///
469466
/// ```rust
470-
/// # #![allow(clippy::disallowed_names)]
471467
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
472468
/// # use core::pin::Pin;
473469
/// # #[pin_data]

0 commit comments

Comments
 (0)