aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_macros/src/tt_cursor.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-31 15:51:17 +0000
committerAleksey Kladov <[email protected]>2019-01-31 20:23:30 +0000
commitad80a0c551458de7d27a98d182d7f559de04f291 (patch)
tree20a3e85a30a45365fe31360cb57b4f53a17b9a28 /crates/ra_macros/src/tt_cursor.rs
parent59347388541388347e86de9718bd69994c113203 (diff)
preserve token spacing
Diffstat (limited to 'crates/ra_macros/src/tt_cursor.rs')
-rw-r--r--crates/ra_macros/src/tt_cursor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_macros/src/tt_cursor.rs b/crates/ra_macros/src/tt_cursor.rs
index 6dc9f400d..046770a0f 100644
--- a/crates/ra_macros/src/tt_cursor.rs
+++ b/crates/ra_macros/src/tt_cursor.rs
@@ -28,7 +28,7 @@ impl<'a> TtCursor<'a> {
28 28
29 pub(crate) fn at_char(&self, char: char) -> bool { 29 pub(crate) fn at_char(&self, char: char) -> bool {
30 match self.at_punct() { 30 match self.at_punct() {
31 Some(tt::Punct { char: c }) if *c == char => true, 31 Some(tt::Punct { char: c, .. }) if *c == char => true,
32 _ => false, 32 _ => false,
33 } 33 }
34 } 34 }