From 17f4d27f1285a76961b2e3957dc192de8e4f179f Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sun, 19 Jul 2020 14:26:24 -0400 Subject: Minor perf tweaks per clippy --- crates/ra_hir_ty/src/lower.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir_ty/src') diff --git a/crates/ra_hir_ty/src/lower.rs b/crates/ra_hir_ty/src/lower.rs index f274579ea..1eacc6f95 100644 --- a/crates/ra_hir_ty/src/lower.rs +++ b/crates/ra_hir_ty/src/lower.rs @@ -341,7 +341,7 @@ impl Ty { let segment = remaining_segments.first().unwrap(); let found = associated_type_by_name_including_super_traits( ctx.db, - trait_ref.clone(), + trait_ref, &segment.name, ); match found { -- cgit v1.2.3