File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ allow-unwrap-in-tests = true
55allow-dbg-in-tests = true
66allow-print-in-tests = true
77disallowed-methods = [
8- { path = " std::option::Option::map_or" , reason = " use `map(..).unwrap_or(..)`" },
9- { path = " std::option::Option::map_or_else" , reason = " use `map(..).unwrap_or_else(..)`" },
10- { path = " std::result::Result::map_or" , reason = " use `map(..).unwrap_or(..)`" },
11- { path = " std::result::Result::map_or_else" , reason = " use `map(..).unwrap_or_else(..)`" },
8+ { path = " std::option::Option::map_or" , reason = " prefer `map(..).unwrap_or(..)` for legibility " },
9+ { path = " std::option::Option::map_or_else" , reason = " prefer `map(..).unwrap_or_else(..)` for legibility " },
10+ { path = " std::result::Result::map_or" , reason = " prefer `map(..).unwrap_or(..)` for legibility " },
11+ { path = " std::result::Result::map_or_else" , reason = " prefer `map(..).unwrap_or_else(..)` for legibility " },
1212 { path = " std::iter::Iterator::for_each" , reason = " prefer `for` for side-effects" },
1313 { path = " std::iter::Iterator::try_for_each" , reason = " prefer `for` for side-effects" },
1414]
You can’t perform that action at this time.
0 commit comments