From d0e9cd2bc655f13392c6687afa72e4dca706abbe Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Fri, 5 Jul 2019 12:41:53 +0900 Subject: Fix clippy::redundant_clone --- crates/ra_hir/src/ty/infer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ra_hir/src/ty') 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> { } None => (receiver_ty, Ty::Unknown, None), }; - let substs = - self.substs_for_method_call(def_generics.clone(), generic_args, &derefed_receiver_ty); + let substs = self.substs_for_method_call(def_generics, generic_args, &derefed_receiver_ty); let method_ty = method_ty.apply_substs(substs); let method_ty = self.insert_type_vars(method_ty); self.register_obligations_for_call(&method_ty); -- cgit v1.2.3