@@ -2310,7 +2310,7 @@ fn lint_unwrap(cx: &LateContext<'_, '_>, expr: &hir::Expr<'_>, unwrap_args: &[hi
2310
2310
& format ! ( "used `unwrap()` on `{}` value" , kind, ) ,
2311
2311
& format ! (
2312
2312
"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",
2314
2314
none_value,
2315
2315
) ,
2316
2316
) ;
@@ -2679,7 +2679,7 @@ fn lint_filter_flat_map<'a, 'tcx>(
2679
2679
if match_trait_method ( cx, expr, & paths:: ITERATOR ) {
2680
2680
let msg = "called `filter(p).flat_map(q)` on an `Iterator`" ;
2681
2681
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()`";
2683
2683
span_lint_and_help ( cx, FILTER_MAP , expr. span , msg, hint) ;
2684
2684
}
2685
2685
}
@@ -2695,7 +2695,7 @@ fn lint_filter_map_flat_map<'a, 'tcx>(
2695
2695
if match_trait_method ( cx, expr, & paths:: ITERATOR ) {
2696
2696
let msg = "called `filter_map(p).flat_map(q)` on an `Iterator`" ;
2697
2697
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()`";
2699
2699
span_lint_and_help ( cx, FILTER_MAP , expr. span , msg, hint) ;
2700
2700
}
2701
2701
}
@@ -3148,7 +3148,7 @@ fn lint_option_as_ref_deref<'a, 'tcx>(
3148
3148
3149
3149
let msg = format ! (
3150
3150
"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",
3152
3152
current_method, hint
3153
3153
) ;
3154
3154
span_lint_and_sugg (
0 commit comments