mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
646b28f5f6
`option_if_let_else`: do not trigger on expressions returning `()` Fix #11893 Trigerring on expressions returning `()` uses the arguments of the `map_or_else()` rewrite only for their side effects. This does lead to code which is harder to read than the original. changelog: [`option_if_let_else`]: do not trigger on unit expressions