Skip to content

remove clippy expectations#107

Merged
BennoLossin merged 1 commit intomainfrom
dev/fix-clippy
Feb 15, 2026
Merged

remove clippy expectations#107
BennoLossin merged 1 commit intomainfrom
dev/fix-clippy

Conversation

@BennoLossin
Copy link
Member

@BennoLossin BennoLossin commented Feb 15, 2026

clippy has changed behavior in [1] where it no longer warns about the let_and_return lint when a comment is placed between the let binding and the return expression. Thus remove the expectation.

Link: rust-lang/rust-clippy#16461 [1]


I'll still have to check if we only support the latest clippy version in the kernel.

Edit: we have to support older versions as well, so I changed it to an allow.

@BennoLossin BennoLossin requested a review from nbdd0121 February 15, 2026 08:58
@BennoLossin BennoLossin marked this pull request as ready for review February 15, 2026 11:21
`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: rust-lang/rust-clippy#16461 [1]
Signed-off-by: Benno Lossin <lossin@kernel.org>
@BennoLossin BennoLossin merged commit e7a5b50 into main Feb 15, 2026
26 checks passed
@BennoLossin BennoLossin deleted the dev/fix-clippy branch February 15, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant