mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
057f5b36f5
Receivers which are references to `Option` and `Result`, or who implement `Deref` to one of those types, will be linted as well. changelog: [`unnecessary_map_or`]: work with ref and `Deref` to `Option` and `Result` as well Fixes #14023 **Note:** this patch must be merged after #13998 – only the second commit must be reviewed, the first one repeats the patch in #13998 for mergeability reasons.