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/ide_assists | |
parent | 23b48d377d295c7ff5b59246788f0627d3726b5b (diff) |
NFC: remove redundant clones (clippy::perf)
Diffstat (limited to 'crates/ide_assists')
-rw-r--r-- | crates/ide_assists/src/handlers/extract_type_alias.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/extract_type_alias.rs b/crates/ide_assists/src/handlers/extract_type_alias.rs index 4bccf5984..eac8857c6 100644 --- a/crates/ide_assists/src/handlers/extract_type_alias.rs +++ b/crates/ide_assists/src/handlers/extract_type_alias.rs | |||
@@ -31,7 +31,7 @@ pub(crate) fn extract_type_alias(acc: &mut Assists, ctx: &AssistContext) -> Opti | |||
31 | let item = ctx.find_node_at_offset::<ast::Item>()?; | 31 | let item = ctx.find_node_at_offset::<ast::Item>()?; |
32 | let insert = match_ast! { | 32 | let insert = match_ast! { |
33 | match (item.syntax().parent()?) { | 33 | match (item.syntax().parent()?) { |
34 | ast::AssocItemList(it) => it.syntax().parent()?.clone(), | 34 | ast::AssocItemList(it) => it.syntax().parent()?, |
35 | _ => item.syntax().clone(), | 35 | _ => item.syntax().clone(), |
36 | } | 36 | } |
37 | }; | 37 | }; |