diff options
author | Maan2003 <[email protected]> | 2021-06-13 05:10:22 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 05:10:22 +0100 |
commit | aabd41cafc1a79f5ad124a31a360ab0442c13efd (patch) | |
tree | 584a7f437204904fcf23b55e201cb27323790b02 /crates/hir_ty | |
parent | b857a5dcf094728b4beefd652ea31d2828eb0e10 (diff) |
clippy::redundant_field_names
Diffstat (limited to 'crates/hir_ty')
-rw-r--r-- | crates/hir_ty/src/infer/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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> { | |||
275 | if !self.unify(&ty, &expected) { | 275 | if !self.unify(&ty, &expected) { |
276 | self.result | 276 | self.result |
277 | .type_mismatches | 277 | .type_mismatches |
278 | .insert(pat.into(), TypeMismatch { expected: expected, actual: ty.clone() }); | 278 | .insert(pat.into(), TypeMismatch { expected, actual: ty.clone() }); |
279 | } | 279 | } |
280 | self.write_pat_ty(pat, ty.clone()); | 280 | self.write_pat_ty(pat, ty.clone()); |
281 | ty | 281 | ty |