Static clippy_lints::methods::OPTION_MAP_UNWRAP_OR_ELSE
[−]
pub static OPTION_MAP_UNWRAP_OR_ELSE: &'static Lint=
&::rustc::lint::Lint{name: "OPTION_MAP_UNWRAP_OR_ELSE", default_level: ::rustc::lint::Allow, desc: "using `Option.map(f).unwrap_or_else(g)`, which is more succinctly expressed as `map_or_else(g, f)`",}