a4bdab38f0
`needless_return`: Support `#[expect]` on the return statement A fix for https://github.com/rust-lang/rust-clippy/issues/9361 suppresses `clippy::needless_return` if there are any attributes on the `return` statement. This leads to some unexpected behavior, as described in https://github.com/rust-lang/rust-clippy/issues/12998, where adding `#[expect(clippy::needless_return)]` suppresses the lint, but doesn't fulfill the expectation. I now decided to manually fulfill any expectations, if they are before the attribute check. --- Closes: https://github.com/rust-lang/rust-clippy/issues/12998 changelog: none |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |