Skip to content

Commit 0f35874

Browse files
ojeday86-dev
authored andcommitted
rust: init: remove unneeded #[allow(clippy::disallowed_names)]
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]> (cherry picked from commit d5cc7ab0a0a99496de1bd933dac242699a417809) Signed-off-by: Paolo Bonzini <[email protected]>
1 parent cc3d5ce commit 0f35874

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
//! To declare an init macro/function you just return an [`impl PinInit<T, E>`]:
123123
//!
124124
//! ```rust
125-
//! # #![allow(clippy::disallowed_names)]
126125
//! # #![feature(allocator_api)]
127126
//! # use pinned_init::*;
128127
//! # #[path = "../examples/error.rs"] mod error; use error::Error;
@@ -410,7 +409,6 @@ macro_rules! stack_try_pin_init {
410409
/// The syntax is almost identical to that of a normal `struct` initializer:
411410
///
412411
/// ```rust
413-
/// # #![allow(clippy::disallowed_names)]
414412
/// # use pinned_init::*;
415413
/// # use core::pin::Pin;
416414
/// #[pin_data]
@@ -455,7 +453,6 @@ macro_rules! stack_try_pin_init {
455453
/// To create an initializer function, simply declare it like this:
456454
///
457455
/// ```rust
458-
/// # #![allow(clippy::disallowed_names)]
459456
/// # use pinned_init::*;
460457
/// # use core::pin::Pin;
461458
/// # #[pin_data]
@@ -510,7 +507,6 @@ macro_rules! stack_try_pin_init {
510507
/// They can also easily embed it into their own `struct`s:
511508
///
512509
/// ```rust
513-
/// # #![allow(clippy::disallowed_names)]
514510
/// # use pinned_init::*;
515511
/// # use core::pin::Pin;
516512
/// # #[pin_data]

0 commit comments

Comments
 (0)