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
5
5
allow-dbg-in-tests = true
6
6
allow-print-in-tests = true
7
7
disallowed-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 " },
12
12
{ path = " std::iter::Iterator::for_each" , reason = " prefer `for` for side-effects" },
13
13
{ path = " std::iter::Iterator::try_for_each" , reason = " prefer `for` for side-effects" },
14
14
]
You can’t perform that action at this time.
0 commit comments