diff options
author | Matthias Krüger <[email protected]> | 2021-06-03 14:32:46 +0100 |
---|---|---|
committer | Matthias Krüger <[email protected]> | 2021-06-03 14:32:46 +0100 |
commit | 9452dfaac73cf1ad99e43795f3b1066e54e32abd (patch) | |
tree | d4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/hir_def | |
parent | 23b48d377d295c7ff5b59246788f0627d3726b5b (diff) |
NFC: remove redundant clones (clippy::perf)
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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> { | |||
130 | ast::Item::ExternBlock(ast) => self.lower_extern_block(ast).into(), | 130 | ast::Item::ExternBlock(ast) => self.lower_extern_block(ast).into(), |
131 | }; | 131 | }; |
132 | 132 | ||
133 | self.add_attrs(item.into(), attrs.clone()); | 133 | self.add_attrs(item.into(), attrs); |
134 | 134 | ||
135 | Some(item) | 135 | Some(item) |
136 | } | 136 | } |