From 9452dfaac73cf1ad99e43795f3b1066e54e32abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 3 Jun 2021 15:32:46 +0200 Subject: NFC: remove redundant clones (clippy::perf) --- crates/hir_def/src/item_tree/lower.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 0e467d907..cfda7cb32 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs @@ -130,7 +130,7 @@ impl<'a> Ctx<'a> { ast::Item::ExternBlock(ast) => self.lower_extern_block(ast).into(), }; - self.add_attrs(item.into(), attrs.clone()); + self.add_attrs(item.into(), attrs); Some(item) } -- cgit v1.2.3