Commit 38ac9179 authored by Shivam Kalra's avatar Shivam Kalra Committed by Greg Kroah-Hartman
Browse files

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: default avatarShivam Kalra <shivamklr@cock.li>
Acked-by: default avatarAlice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260130182842.217821-1-shivamklr@cock.li


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9991bbc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ pub(crate) fn for_each_proc<F>(&self, mut func: F)
    {
        let lock = self.manager.lock();
        for proc in &lock.all_procs {
            func(&proc);
            func(proc);
        }
    }