|
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 { |
@@ -368,7 +367,6 @@ macro_rules! stack_try_pin_init { |
368 | 367 | /// The syntax is almost identical to that of a normal `struct` initializer: |
369 | 368 | /// |
370 | 369 | /// ```rust |
371 | | -/// # #![allow(clippy::disallowed_names)] |
372 | 370 | /// # use kernel::{init, pin_init, macros::pin_data, init::*}; |
373 | 371 | /// # use core::pin::Pin; |
374 | 372 | /// #[pin_data] |
@@ -413,7 +411,6 @@ macro_rules! stack_try_pin_init { |
413 | 411 | /// To create an initializer function, simply declare it like this: |
414 | 412 | /// |
415 | 413 | /// ```rust |
416 | | -/// # #![allow(clippy::disallowed_names)] |
417 | 414 | /// # use kernel::{init, pin_init, init::*}; |
418 | 415 | /// # use core::pin::Pin; |
419 | 416 | /// # #[pin_data] |
@@ -468,7 +465,6 @@ macro_rules! stack_try_pin_init { |
468 | 465 | /// They can also easily embed it into their own `struct`s: |
469 | 466 | /// |
470 | 467 | /// ```rust |
471 | | -/// # #![allow(clippy::disallowed_names)] |
472 | 468 | /// # use kernel::{init, pin_init, macros::pin_data, init::*}; |
473 | 469 | /// # use core::pin::Pin; |
474 | 470 | /// # #[pin_data] |
|
0 commit comments