Skip to content

Commit 9bdc848

Browse files
ojedasmb49
authored andcommitted
rust: init: remove unneeded #[allow(clippy::disallowed_names)]
BugLink: https://bugs.launchpad.net/bugs/2117533 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]> [nwager: Context changes due to missing commit: 4a2ae88 ("rust: remove unneeded `kernel::prelude` imports from doctests")] Signed-off-by: Noah Wager <[email protected]> Signed-off-by: Mehmet Basaran <[email protected]>
1 parent b6cd837 commit 9bdc848

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
@@ -86,7 +86,6 @@
8686
//! To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
8787
//!
8888
//! ```rust
89-
//! # #![allow(clippy::disallowed_names)]
9089
//! # use kernel::{sync::Mutex, prelude::*, new_mutex, init::PinInit, try_pin_init};
9190
//! #[pin_data]
9291
//! struct DriverData {
@@ -366,7 +365,6 @@ macro_rules! stack_try_pin_init {
366365
/// The syntax is almost identical to that of a normal `struct` initializer:
367366
///
368367
/// ```rust
369-
/// # #![allow(clippy::disallowed_names)]
370368
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
371369
/// # use core::pin::Pin;
372370
/// #[pin_data]
@@ -411,7 +409,6 @@ macro_rules! stack_try_pin_init {
411409
/// To create an initializer function, simply declare it like this:
412410
///
413411
/// ```rust
414-
/// # #![allow(clippy::disallowed_names)]
415412
/// # use kernel::{init, pin_init, prelude::*, init::*};
416413
/// # use core::pin::Pin;
417414
/// # #[pin_data]
@@ -466,7 +463,6 @@ macro_rules! stack_try_pin_init {
466463
/// They can also easily embed it into their own `struct`s:
467464
///
468465
/// ```rust
469-
/// # #![allow(clippy::disallowed_names)]
470466
/// # use kernel::{init, pin_init, macros::pin_data, init::*};
471467
/// # use core::pin::Pin;
472468
/// # #[pin_data]

0 commit comments

Comments
 (0)