]> git.hungrycats.org Git - linux/commit
rust: pin-init: examples: fix `useless_borrows_in_formatting` clippy warning
authorGary Guo <gary@garyguo.net>
Tue, 5 May 2026 11:51:37 +0000 (12:51 +0100)
committerGary Guo <gary@garyguo.net>
Sun, 10 May 2026 22:00:51 +0000 (23:00 +0100)
commit430654211d566f86e8ee533ff1b01a42be6b602c
treef0444e3fc6a43604982fc5ce38cc5939e10194b1
parentfaed81945d0bfcced81a2738d9681a265d41079a
rust: pin-init: examples: fix `useless_borrows_in_formatting` clippy warning

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.

Link: https://patch.msgid.link/20260505115138.2466966-1-gary@kernel.org
Signed-off-by: Gary Guo <gary@garyguo.net>
rust/pin-init/examples/mutex.rs
rust/pin-init/examples/pthread_mutex.rs
rust/pin-init/examples/static_init.rs