From aabd41cafc1a79f5ad124a31a360ab0442c13efd Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:40:22 +0530 Subject: clippy::redundant_field_names --- crates/hir_ty/src/infer/pat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_ty') diff --git a/crates/hir_ty/src/infer/pat.rs b/crates/hir_ty/src/infer/pat.rs index 8f5db1f40..035f4ded6 100644 --- a/crates/hir_ty/src/infer/pat.rs +++ b/crates/hir_ty/src/infer/pat.rs @@ -275,7 +275,7 @@ impl<'a> InferenceContext<'a> { if !self.unify(&ty, &expected) { self.result .type_mismatches - .insert(pat.into(), TypeMismatch { expected: expected, actual: ty.clone() }); + .insert(pat.into(), TypeMismatch { expected, actual: ty.clone() }); } self.write_pat_ty(pat, ty.clone()); ty -- cgit v1.2.3