diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 8 |
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 | ||