|
86 | 86 | //! To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
|
87 | 87 | //!
|
88 | 88 | //! ```rust
|
89 |
| -//! # #![allow(clippy::disallowed_names)] |
90 | 89 | //! # use kernel::{sync::Mutex, prelude::*, new_mutex, init::PinInit, try_pin_init};
|
91 | 90 | //! #[pin_data]
|
92 | 91 | //! struct DriverData {
|
@@ -366,7 +365,6 @@ macro_rules! stack_try_pin_init {
|
366 | 365 | /// The syntax is almost identical to that of a normal `struct` initializer:
|
367 | 366 | ///
|
368 | 367 | /// ```rust
|
369 |
| -/// # #![allow(clippy::disallowed_names)] |
370 | 368 | /// # use kernel::{init, pin_init, macros::pin_data, init::*};
|
371 | 369 | /// # use core::pin::Pin;
|
372 | 370 | /// #[pin_data]
|
@@ -411,7 +409,6 @@ macro_rules! stack_try_pin_init {
|
411 | 409 | /// To create an initializer function, simply declare it like this:
|
412 | 410 | ///
|
413 | 411 | /// ```rust
|
414 |
| -/// # #![allow(clippy::disallowed_names)] |
415 | 412 | /// # use kernel::{init, pin_init, prelude::*, init::*};
|
416 | 413 | /// # use core::pin::Pin;
|
417 | 414 | /// # #[pin_data]
|
@@ -466,7 +463,6 @@ macro_rules! stack_try_pin_init {
|
466 | 463 | /// They can also easily embed it into their own `struct`s:
|
467 | 464 | ///
|
468 | 465 | /// ```rust
|
469 |
| -/// # #![allow(clippy::disallowed_names)] |
470 | 466 | /// # use kernel::{init, pin_init, macros::pin_data, init::*};
|
471 | 467 | /// # use core::pin::Pin;
|
472 | 468 | /// # #[pin_data]
|
|
0 commit comments