Skip to content

Commit 0f35874

Browse files
ojedaBennoLossin
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 <aliceryhl@google.com> Reviewed-by: Trevor Gross <tmgross@umich.edu> Tested-by: Gary Guo <gary@garyguo.net> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://lore.kernel.org/r/20240904204347.168520-10-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org> (cherry picked from commit d5cc7ab0a0a99496de1bd933dac242699a417809) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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)