about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Sedlacek <rs@474.at>2020-07-03 18:23:36 +0200
committerRobert Sedlacek <rs@474.at>2020-07-03 18:23:36 +0200
commitc0fd452840c7cc53b3396268f62ed2a0a2e8fef7 (patch)
tree6815fd080ed19b3f57296cdcb9a9385e72697ee2
parentaa4bee228f23b3e1a1d91ed3a4606af3c6b60895 (diff)
downloadrust-c0fd452840c7cc53b3396268f62ed2a0a2e8fef7.tar.gz
rust-c0fd452840c7cc53b3396268f62ed2a0a2e8fef7.zip
fmt fix
-rw-r--r--clippy_lints/src/pattern_type_mismatch.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/clippy_lints/src/pattern_type_mismatch.rs b/clippy_lints/src/pattern_type_mismatch.rs
index 8587a79e821..a49dc87c0b4 100644
--- a/clippy_lints/src/pattern_type_mismatch.rs
+++ b/clippy_lints/src/pattern_type_mismatch.rs
@@ -146,12 +146,7 @@ enum DerefPossible {
     Impossible,
 }
 
-fn apply_lint<'tcx>(
-    cx: &LateContext<'tcx>,
-    pat: &Pat<'_>,
-    expr_ty: Ty<'tcx>,
-    deref_possible: DerefPossible,
-) -> bool {
+fn apply_lint<'tcx>(cx: &LateContext<'tcx>, pat: &Pat<'_>, expr_ty: Ty<'tcx>, deref_possible: DerefPossible) -> bool {
     let maybe_mismatch = find_first_mismatch(cx, pat, expr_ty, Level::Top);
     if let Some((span, mutability, level)) = maybe_mismatch {
         span_lint_and_help(