aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-03 14:45:17 +0100
committerGitHub <[email protected]>2021-06-03 14:45:17 +0100
commit1dbdac8f518e5d3400a0bbc0478a606ab70d8a44 (patch)
treed4ee0f996908ec3020c13496a49a3a5cc42a8e75 /crates/ide_assists
parent23b48d377d295c7ff5b59246788f0627d3726b5b (diff)
parent9452dfaac73cf1ad99e43795f3b1066e54e32abd (diff)
Merge #9129
9129: NFC: remove redundant clones (clippy::perf) r=Veykril a=matthiaskrgr Co-authored-by: Matthias Krüger <[email protected]>
Diffstat (limited to 'crates/ide_assists')
-rw-r--r--crates/ide_assists/src/handlers/extract_type_alias.rs2
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 };