diff options
author | Shotaro Yamada <[email protected]> | 2020-02-19 04:29:34 +0000 |
---|---|---|
committer | Shotaro Yamada <[email protected]> | 2020-02-19 04:36:59 +0000 |
commit | d06733efebc5d8b378398f1cbb4bbd9f3deb8270 (patch) | |
tree | 41099b8ebd3f8ca0aea64ac8623e8ac1140ca572 /crates/ra_mbe/src | |
parent | dd0c3c41b927654553fa407fbb654bb3a2c64a48 (diff) |
Cleanup
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r-- | crates/ra_mbe/src/subtree_source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/subtree_source.rs b/crates/ra_mbe/src/subtree_source.rs index eb8b79e9a..dacca8279 100644 --- a/crates/ra_mbe/src/subtree_source.rs +++ b/crates/ra_mbe/src/subtree_source.rs | |||
@@ -141,7 +141,7 @@ fn convert_literal(l: &tt::Literal) -> TtToken { | |||
141 | } | 141 | } |
142 | 142 | ||
143 | fn convert_ident(ident: &tt::Ident) -> TtToken { | 143 | fn convert_ident(ident: &tt::Ident) -> TtToken { |
144 | let kind = if let Some('\'') = ident.text.chars().next() { | 144 | let kind = if ident.text.starts_with('\'') { |
145 | LIFETIME | 145 | LIFETIME |
146 | } else { | 146 | } else { |
147 | SyntaxKind::from_keyword(ident.text.as_str()).unwrap_or(IDENT) | 147 | SyntaxKind::from_keyword(ident.text.as_str()).unwrap_or(IDENT) |