Skip to content

Commit 38ac917

Browse files
Shivam Kalragregkh
authored andcommitted
rust_binder: fix needless borrow in context.rs
Clippy warns about a needless borrow in context.rs: error: this expression creates a reference which is immediately dereferenced by the compiler --> drivers/android/binder/context.rs:141:18 | 141 | func(&proc); | ^^^^^ help: change this to: `proc` Remove the unnecessary borrow to satisfy clippy and improve code cleanliness. No functional change. Signed-off-by: Shivam Kalra <shivamklr@cock.li> Acked-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260130182842.217821-1-shivamklr@cock.li Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9991bbc commit 38ac917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/android/binder/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Context {
138138
{
139139
let lock = self.manager.lock();
140140
for proc in &lock.all_procs {
141-
func(&proc);
141+
func(proc);
142142
}
143143
}
144144

0 commit comments

Comments
 (0)