Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: sync: implement
Default
for LockClassKey
In Rust 1.78.0, Clippy suggests to implement `Default` even when `new()` is `const`, since `Default::default()` may call `const` functions even if it is not `const` itself [1]: error: you should consider adding a `Default` implementation for `LockClassKey` --> rust/kernel/sync.rs:31:5 | 31 | / pub const fn new() -> Self { 32 | | Self(Opaque::uninit()) 33 | | } | |_____^ Thus implement it. Link: rust-lang/rust-clippy#10903 [1] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
- Loading branch information