From 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 5 Feb 2021 16:57:26 +0100 Subject: Remove redundant clones --- crates/hir_def/src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_def/src/data.rs') diff --git a/crates/hir_def/src/data.rs b/crates/hir_def/src/data.rs index 42fcca386..d3380e0f4 100644 --- a/crates/hir_def/src/data.rs +++ b/crates/hir_def/src/data.rs @@ -43,7 +43,7 @@ impl FunctionData { name: func.name.clone(), params: func.params.iter().map(|id| item_tree[*id].clone()).collect(), ret_type: item_tree[func.ret_type].clone(), - attrs: item_tree.attrs(db, krate, ModItem::from(loc.id.value).into()).clone(), + attrs: item_tree.attrs(db, krate, ModItem::from(loc.id.value).into()), has_self_param: func.has_self_param, has_body: func.has_body, is_unsafe: func.is_unsafe, -- cgit v1.2.3