Re: [PATCH] rust: pin-init: replace clippy `expect` with `allow`
From: Benno Lossin
Date: Mon Feb 16 2026 - 06:17:32 EST
On Mon Feb 16, 2026 at 2:36 AM CET, Gary Guo wrote:
> On 2026-02-15 13:22, Benno Lossin wrote:
>> `clippy` has changed behavior in [1] (Rust 1.95) where it no longer
>> warns about the `let_and_return` lint when a comment is placed between
>> the let binding and the return expression. Nightly thus fails to build,
>> because the expectation is no longer fulfilled.
>>
>> Thus replace the expectation with an `allow`.
>>
>> Link: https://github.com/rust-lang/rust-clippy/pull/16461 [1]
>> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>
>
> I think it's worth adding a comment (or reason) that this is no longer needed after 1.95.
We'll remove the let binding when we raise the MSRV above 1.78 and then
the `allow` should also be gone. Do you still want me to add it?
Cheers,
Benno