diff options
Diffstat (limited to 'crates/ra_mbe/src/subtree_source.rs')
-rw-r--r-- | crates/ra_mbe/src/subtree_source.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_mbe/src/subtree_source.rs b/crates/ra_mbe/src/subtree_source.rs index e1c6e7d91..6603ff34d 100644 --- a/crates/ra_mbe/src/subtree_source.rs +++ b/crates/ra_mbe/src/subtree_source.rs | |||
@@ -145,7 +145,7 @@ fn convert_ident(ident: &tt::Ident) -> TtToken { | |||
145 | TtToken { kind, is_joint_to_next: false, text: ident.text.clone() } | 145 | TtToken { kind, is_joint_to_next: false, text: ident.text.clone() } |
146 | } | 146 | } |
147 | 147 | ||
148 | fn convert_punct(p: &tt::Punct) -> TtToken { | 148 | fn convert_punct(p: tt::Punct) -> TtToken { |
149 | let kind = match p.char { | 149 | let kind = match p.char { |
150 | // lexer may produce compound tokens for these ones | 150 | // lexer may produce compound tokens for these ones |
151 | '.' => T![.], | 151 | '.' => T![.], |
@@ -167,6 +167,6 @@ fn convert_leaf(leaf: &tt::Leaf) -> TtToken { | |||
167 | match leaf { | 167 | match leaf { |
168 | tt::Leaf::Literal(l) => convert_literal(l), | 168 | tt::Leaf::Literal(l) => convert_literal(l), |
169 | tt::Leaf::Ident(ident) => convert_ident(ident), | 169 | tt::Leaf::Ident(ident) => convert_ident(ident), |
170 | tt::Leaf::Punct(punct) => convert_punct(punct), | 170 | tt::Leaf::Punct(punct) => convert_punct(*punct), |
171 | } | 171 | } |
172 | } | 172 | } |