Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/coerce.rs')
-rw-r--r--crates/hir-ty/src/infer/coerce.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/coerce.rs b/crates/hir-ty/src/infer/coerce.rs
index 6bf9f421fc..96c35bbb8c 100644
--- a/crates/hir-ty/src/infer/coerce.rs
+++ b/crates/hir-ty/src/infer/coerce.rs
@@ -151,7 +151,7 @@ impl CoerceMany {
if let Some(id) = expr {
ctx.result.type_mismatches.insert(
id.into(),
- TypeMismatch { expected: self.merged_ty().clone(), actual: expr_ty.clone() },
+ TypeMismatch { expected: self.merged_ty(), actual: expr_ty.clone() },
);
}
cov_mark::hit!(coerce_merge_fail_fallback);