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