Skip to content

Commit ac9f019

Browse files
committed
Reformat code.
1 parent 26b1d60 commit ac9f019

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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(

clippy_lints/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl Types {
316316
OPTION_OPTION,
317317
hir_ty.span,
318318
"consider using `Option<T>` instead of `Option<Option<T>>` or a custom \
319-
enum if you need to distinguish all 3 cases",
319+
enum if you need to distinguish all 3 cases",
320320
);
321321
return; // don't recurse into the type
322322
}

0 commit comments

Comments
 (0)