3535//! that you need to write `<-` instead of `:` for fields that you want to initialize in-place.
3636//!
3737//! ```rust
38- //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
38+ //! # #![allow(clippy::disallowed_names)]
3939//! use kernel::{prelude::*, sync::Mutex, new_mutex};
4040//! # use core::pin::Pin;
4141//! #[pin_data]
5555//! (or just the stack) to actually initialize a `Foo`:
5656//!
5757//! ```rust
58- //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
58+ //! # #![allow(clippy::disallowed_names)]
5959//! # use kernel::{prelude::*, sync::Mutex, new_mutex};
6060//! # use core::pin::Pin;
6161//! # #[pin_data]
8686//! To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
8787//!
8888//! ```rust
89- //! # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
89+ //! # #![allow(clippy::disallowed_names)]
9090//! # use kernel::{sync::Mutex, prelude::*, new_mutex, init::PinInit, try_pin_init};
9191//! #[pin_data]
9292//! struct DriverData {
@@ -236,7 +236,7 @@ pub mod macros;
236236/// # Examples
237237///
238238/// ```rust
239- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
239+ /// # #![allow(clippy::disallowed_names)]
240240/// # use kernel::{init, macros::pin_data, pin_init, stack_pin_init, init::*, sync::Mutex, new_mutex};
241241/// # use core::pin::Pin;
242242/// #[pin_data]
@@ -288,7 +288,7 @@ macro_rules! stack_pin_init {
288288/// # Examples
289289///
290290/// ```rust,ignore
291- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
291+ /// # #![allow(clippy::disallowed_names)]
292292/// # use kernel::{init, pin_init, stack_try_pin_init, init::*, sync::Mutex, new_mutex};
293293/// # use macros::pin_data;
294294/// # use core::{alloc::AllocError, pin::Pin};
@@ -314,7 +314,7 @@ macro_rules! stack_pin_init {
314314/// ```
315315///
316316/// ```rust,ignore
317- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
317+ /// # #![allow(clippy::disallowed_names)]
318318/// # use kernel::{init, pin_init, stack_try_pin_init, init::*, sync::Mutex, new_mutex};
319319/// # use macros::pin_data;
320320/// # use core::{alloc::AllocError, pin::Pin};
@@ -366,7 +366,7 @@ macro_rules! stack_try_pin_init {
366366/// The syntax is almost identical to that of a normal `struct` initializer:
367367///
368368/// ```rust
369- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
369+ /// # #![allow(clippy::disallowed_names)]
370370/// # use kernel::{init, pin_init, macros::pin_data, init::*};
371371/// # use core::pin::Pin;
372372/// #[pin_data]
@@ -411,7 +411,7 @@ macro_rules! stack_try_pin_init {
411411/// To create an initializer function, simply declare it like this:
412412///
413413/// ```rust
414- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
414+ /// # #![allow(clippy::disallowed_names)]
415415/// # use kernel::{init, pin_init, prelude::*, init::*};
416416/// # use core::pin::Pin;
417417/// # #[pin_data]
@@ -438,7 +438,7 @@ macro_rules! stack_try_pin_init {
438438/// Users of `Foo` can now create it like this:
439439///
440440/// ```rust
441- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
441+ /// # #![allow(clippy::disallowed_names)]
442442/// # use kernel::{init, pin_init, macros::pin_data, init::*};
443443/// # use core::pin::Pin;
444444/// # #[pin_data]
@@ -466,7 +466,7 @@ macro_rules! stack_try_pin_init {
466466/// They can also easily embed it into their own `struct`s:
467467///
468468/// ```rust
469- /// # #![allow(clippy::disallowed_names, clippy::new_ret_no_self )]
469+ /// # #![allow(clippy::disallowed_names)]
470470/// # use kernel::{init, pin_init, macros::pin_data, init::*};
471471/// # use core::pin::Pin;
472472/// # #[pin_data]
0 commit comments