summaryrefslogtreecommitdiff
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-09-24 15:05:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-13 10:57:41 +0200
commit7e69a24b6b35d4ffd54dd702047a01f5858b3e45 (patch)
treebc5e200b288f5e6e1751aff750f168befb2956ee /lib/timerqueue.c
parent3a8660878839faadb4f1a6dd72c3179c1df56787 (diff)
rust_binder: clean `clippy::mem_replace_with_default` warning
Clippy reports: error: replacing a value of type `T` with `T::default()` is better expressed using `core::mem::take` --> drivers/android/binder/node.rs:690:32 | 690 | _unused_capacity = mem::replace(&mut inner.freeze_list, KVVec::new()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `core::mem::take(&mut inner.freeze_list)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default = note: `-D clippy::mem-replace-with-default` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::mem_replace_with_default)]` The suggestion seems fine, thus apply it. Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions