aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src
diff options
context:
space:
mode:
authorShotaro Yamada <[email protected]>2020-02-19 04:29:34 +0000
committerShotaro Yamada <[email protected]>2020-02-19 04:36:59 +0000
commitd06733efebc5d8b378398f1cbb4bbd9f3deb8270 (patch)
tree41099b8ebd3f8ca0aea64ac8623e8ac1140ca572 /crates/ra_mbe/src
parentdd0c3c41b927654553fa407fbb654bb3a2c64a48 (diff)
Cleanup
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r--crates/ra_mbe/src/subtree_source.rs2
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
143fn convert_ident(ident: &tt::Ident) -> TtToken { 143fn 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)