@@ -2310,7 +2310,7 @@ fn lint_unwrap(cx: &LateContext<'_, '_>, expr: &hir::Expr<'_>, unwrap_args: &[hi
23102310 & format ! ( "used `unwrap()` on `{}` value" , kind, ) ,
23112311 & format ! (
23122312 "if you don't want to handle the `{}` case gracefully, consider \
2313- using `expect()` to provide a better panic message",
2313+ using `expect()` to provide a better panic message",
23142314 none_value,
23152315 ) ,
23162316 ) ;
@@ -2679,7 +2679,7 @@ fn lint_filter_flat_map<'a, 'tcx>(
26792679 if match_trait_method ( cx, expr, & paths:: ITERATOR ) {
26802680 let msg = "called `filter(p).flat_map(q)` on an `Iterator`" ;
26812681 let hint = "this is more succinctly expressed by calling `.flat_map(..)` \
2682- and filtering by returning `iter::empty()`";
2682+ and filtering by returning `iter::empty()`";
26832683 span_lint_and_help ( cx, FILTER_MAP , expr. span , msg, hint) ;
26842684 }
26852685}
@@ -2695,7 +2695,7 @@ fn lint_filter_map_flat_map<'a, 'tcx>(
26952695 if match_trait_method ( cx, expr, & paths:: ITERATOR ) {
26962696 let msg = "called `filter_map(p).flat_map(q)` on an `Iterator`" ;
26972697 let hint = "this is more succinctly expressed by calling `.flat_map(..)` \
2698- and filtering by returning `iter::empty()`";
2698+ and filtering by returning `iter::empty()`";
26992699 span_lint_and_help ( cx, FILTER_MAP , expr. span , msg, hint) ;
27002700 }
27012701}
@@ -3148,7 +3148,7 @@ fn lint_option_as_ref_deref<'a, 'tcx>(
31483148
31493149 let msg = format ! (
31503150 "called `{0}` (or with one of deref aliases) on an Option value. \
3151- This can be done more directly by calling `{1}` instead",
3151+ This can be done more directly by calling `{1}` instead",
31523152 current_method, hint
31533153 ) ;
31543154 span_lint_and_sugg (
0 commit comments