diff --git a/clippy_lints/src/methods/unnecessary_map_or.rs b/clippy_lints/src/methods/unnecessary_map_or.rs index bcdd0b0851c5..6a8d23b58acf 100644 --- a/clippy_lints/src/methods/unnecessary_map_or.rs +++ b/clippy_lints/src/methods/unnecessary_map_or.rs @@ -124,7 +124,7 @@ pub(super) fn check<'a>( cx, UNNECESSARY_MAP_OR, expr.span, - format!("this `map_or` is redundant"), + "this `map_or` is redundant", format!("use {method} instead"), sugg, Applicability::MachineApplicable,