Re: [PATCH] rust: pin-init: examples: fix `useless_borrows_in_formatting` clippy warning
From: Gary Guo
Date: Sun May 10 2026 - 18:06:34 EST
On Tue May 5, 2026 at 12:51 PM BST, Gary Guo wrote:
> From: Gary Guo <gary@xxxxxxxxxxx>
>
> Clippy 1.97 introduces new `useless_borrows_in_formatting` warning which
> fires on the examples as we have `&*expr` where the format macro takes
> reference already. Remove the extra borrow.
>
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Applied to pin-init-next.
Best,
Gary