Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/expr.rs')
-rw-r--r--crates/hir-ty/src/infer/expr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-ty/src/infer/expr.rs b/crates/hir-ty/src/infer/expr.rs
index 2b19c445ed..0441d2ec32 100644
--- a/crates/hir-ty/src/infer/expr.rs
+++ b/crates/hir-ty/src/infer/expr.rs
@@ -2007,7 +2007,7 @@ impl<'db> InferenceContext<'_, 'db> {
},
None => None,
};
- (arg_types.iter().collect(), expected_input_tys)
+ (arg_types.to_vec(), expected_input_tys)
}
_ => {
// Otherwise, there's a mismatch, so clear out what we're expecting, and set
@@ -2017,7 +2017,7 @@ impl<'db> InferenceContext<'_, 'db> {
}
}
} else {
- (formal_input_tys.to_vec(), expected_input_tys)
+ (formal_input_tys, expected_input_tys)
};
// If there are no external expectations at the call site, just use the types from the function defn