clippy::redundant_field_names

This commit is contained in:
Maan2003 2021-06-13 09:40:22 +05:30
parent b857a5dcf0
commit aabd41cafc
No known key found for this signature in database
GPG key ID: E9AF024BA63C70ED
6 changed files with 7 additions and 7 deletions

View file

@ -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