aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2020-07-06 22:13:55 +0100
committerkjeremy <[email protected]>2020-07-06 22:13:55 +0100
commitebdee366b0e16d1d019db2f5c22a730b4451194f (patch)
treeb7a052c076ecf5c7a21824693da85b8f3bc970d8 /crates/ra_syntax
parentd4bc2f25de6297c75f7b7f029df224b650ef3143 (diff)
Clippy perf warnings
Removes redundant clones
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/ast/edit.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs
index 2ef173a03..940c30c7f 100644
--- a/crates/ra_syntax/src/ast/edit.rs
+++ b/crates/ra_syntax/src/ast/edit.rs
@@ -299,12 +299,8 @@ impl ast::UseTree {
299 Some(it) => it, 299 Some(it) => it,
300 None => return self.clone(), 300 None => return self.clone(),
301 }; 301 };
302 let use_tree = make::use_tree( 302 let use_tree =
303 suffix.clone(), 303 make::use_tree(suffix, self.use_tree_list(), self.alias(), self.star_token().is_some());
304 self.use_tree_list(),
305 self.alias(),
306 self.star_token().is_some(),
307 );
308 let nested = make::use_tree_list(iter::once(use_tree)); 304 let nested = make::use_tree_list(iter::once(use_tree));
309 return make::use_tree(prefix.clone(), Some(nested), None, false); 305 return make::use_tree(prefix.clone(), Some(nested), None, false);
310 306