A `return` in an expression makes it divergent and cannot be removed blindly. While this stripping might have been introduced as a way to catch more cases, it was improperly used, and no tests exhibit a failure when this special handling is removed. changelog: [`needless_match`]: do not strip `return` as it might make the `if let` or `match` divergent in some cases Fixes rust-lang/rust-clippy#14754 |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||