diff options
author | Aleksey Kladov <[email protected]> | 2019-01-31 15:51:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-31 20:23:30 +0000 |
commit | ad80a0c551458de7d27a98d182d7f559de04f291 (patch) | |
tree | 20a3e85a30a45365fe31360cb57b4f53a17b9a28 /crates/ra_macros/src/tt_cursor.rs | |
parent | 59347388541388347e86de9718bd69994c113203 (diff) |
preserve token spacing
Diffstat (limited to 'crates/ra_macros/src/tt_cursor.rs')
-rw-r--r-- | crates/ra_macros/src/tt_cursor.rs | 2 |
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 | } |