diff options
author | Shotaro Yamada <[email protected]> | 2019-07-05 04:41:53 +0100 |
---|---|---|
committer | Shotaro Yamada <[email protected]> | 2019-07-05 04:45:58 +0100 |
commit | d0e9cd2bc655f13392c6687afa72e4dca706abbe (patch) | |
tree | eb325b0b466a9267755c3e457727f63d86c65257 /crates/ra_hir/src/ty | |
parent | 21f70a7293e7b24dedeec9a504763a1a3ef57675 (diff) |
Fix clippy::redundant_clone
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index 9228dd314..f47f4c5de 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -895,8 +895,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
895 | } | 895 | } |
896 | None => (receiver_ty, Ty::Unknown, None), | 896 | None => (receiver_ty, Ty::Unknown, None), |
897 | }; | 897 | }; |
898 | let substs = | 898 | let substs = self.substs_for_method_call(def_generics, generic_args, &derefed_receiver_ty); |
899 | self.substs_for_method_call(def_generics.clone(), generic_args, &derefed_receiver_ty); | ||
900 | let method_ty = method_ty.apply_substs(substs); | 899 | let method_ty = method_ty.apply_substs(substs); |
901 | let method_ty = self.insert_type_vars(method_ty); | 900 | let method_ty = self.insert_type_vars(method_ty); |
902 | self.register_obligations_for_call(&method_ty); | 901 | self.register_obligations_for_call(&method_ty); |