Use a better message for unnecessary_map_or lint
Suggested by @smoelius.
This commit is contained in:
parent
10677c3a19
commit
425346a1bc
2 changed files with 19 additions and 19 deletions
|
|
@ -135,7 +135,7 @@ pub(super) fn check<'a>(
|
|||
cx,
|
||||
UNNECESSARY_MAP_OR,
|
||||
expr.span,
|
||||
"this `map_or` is redundant",
|
||||
"this `map_or` can be simplified",
|
||||
format!("use {method} instead"),
|
||||
sugg,
|
||||
applicability,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue