rust: kernel: remove `#[allow(clippy::new_ret_no_self)]`
authorGary Guo <gary@garyguo.net>
Sat, 23 Sep 2023 02:46:50 +0000 (10:46 +0800)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 5 Oct 2023 19:16:13 +0000 (21:16 +0200)
commitb2516f7af9d238ebc391bdbdae01ac9528f1109e
treee0361740eebb6cecb1c7a65f4e8bb8d5afd5d7e2
parentfc388bea85f88cb9117eda808ed9237af65f3041
rust: kernel: remove `#[allow(clippy::new_ret_no_self)]`

Clippy triggered a false positive on its `new_ret_no_self` lint
when using the `pin_init!` macro. Since Rust 1.67.0, that does
not happen anymore, since Clippy learnt to not warn about
`-> impl Trait<Self>` [1][2].

The kernel nowadays uses Rust 1.72.1, thus remove the `#[allow]`.

Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Finn Behrens <me@kloenk.dev>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Link: https://github.com/rust-lang/rust-clippy/issues/7344
Link: https://github.com/rust-lang/rust-clippy/pull/9733
Link: https://lore.kernel.org/r/20230923024707.47610-1-gary@garyguo.net
[ Reworded slightly and added a couple `Link`s. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/init.rs
rust/kernel/sync/condvar.rs
rust/kernel/sync/lock.rs