diff options
author | Aleksey Kladov <[email protected]> | 2020-04-10 09:27:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-10 15:10:28 +0100 |
commit | 460c8bbdec8561a581d035f9767b7dd1ba36cfd7 (patch) | |
tree | 8bfba509776ea2c58ca6b47c668603c63a4b9d4f /crates/ra_syntax/src/ast/edit.rs | |
parent | 1c5d8591952cbb017fd6679a1ef29a86e1499025 (diff) |
Curley tokens
Diffstat (limited to 'crates/ra_syntax/src/ast/edit.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/edit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/edit.rs b/crates/ra_syntax/src/ast/edit.rs index a01f6487d..7e14349d2 100644 --- a/crates/ra_syntax/src/ast/edit.rs +++ b/crates/ra_syntax/src/ast/edit.rs | |||
@@ -98,7 +98,7 @@ impl ast::ItemList { | |||
98 | None => match self.l_curly_token() { | 98 | None => match self.l_curly_token() { |
99 | Some(it) => ( | 99 | Some(it) => ( |
100 | " ".to_string() + &leading_indent(self.syntax()).unwrap_or_default(), | 100 | " ".to_string() + &leading_indent(self.syntax()).unwrap_or_default(), |
101 | InsertPosition::After(it.syntax().clone().into()), | 101 | InsertPosition::After(it.into()), |
102 | ), | 102 | ), |
103 | None => return self.clone(), | 103 | None => return self.clone(), |
104 | }, | 104 | }, |
@@ -142,7 +142,7 @@ impl ast::RecordFieldList { | |||
142 | macro_rules! after_l_curly { | 142 | macro_rules! after_l_curly { |
143 | () => {{ | 143 | () => {{ |
144 | let anchor = match self.l_curly_token() { | 144 | let anchor = match self.l_curly_token() { |
145 | Some(it) => it.syntax().clone().into(), | 145 | Some(it) => it.into(), |
146 | None => return self.clone(), | 146 | None => return self.clone(), |
147 | }; | 147 | }; |
148 | InsertPosition::After(anchor) | 148 | InsertPosition::After(anchor) |