Re: [PATCH char-misc-next] rust_binder: fix needless borrow in context.rs
From: Alice Ryhl
Date: Fri Jan 30 2026 - 13:49:04 EST
On Fri, Jan 30, 2026 at 7:31 PM Shivam Kalra <shivamklr@xxxxxxx> wrote:
>
> 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@xxxxxxx>
Thanks.
Acked-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>