Use a better message for unnecessary_map_or lint

Suggested by @smoelius.
This commit is contained in:
Samuel Tardieu 2024-11-19 21:38:47 +01:00
parent 10677c3a19
commit 425346a1bc
2 changed files with 19 additions and 19 deletions

View file

@ -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,