mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
c69905a995
Propose to replace `x.map_or(false, |y| y == z)` by `x == Some(z)` only if `x` is not adjusted. Otherwise, the type of `x` in the comparaison may not be the expected one, as it may be the product of an auto-deref.