[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH5fLgg1ZsbKTNLSajD_mvqnPkh=aurC7f0eb0zPP0J9JXBpzA@mail.gmail.com>
Date: Fri, 30 Jan 2026 19:48:43 +0100
From: Alice Ryhl <aliceryhl@...gle.com>
To: Shivam Kalra <shivamklr@...k.li>
Cc: gregkh@...uxfoundation.org, arve@...roid.com, tkjos@...roid.com,
brauner@...nel.org, cmllamas@...gle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH char-misc-next] rust_binder: fix needless borrow in context.rs
On Fri, Jan 30, 2026 at 7:31 PM Shivam Kalra <shivamklr@...k.li> 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@...k.li>
Thanks.
Acked-by: Alice Ryhl <aliceryhl@...gle.com>
Powered by blists - more mailing lists