Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/shortcuts.rs')
| -rw-r--r-- | crates/parser/src/shortcuts.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/parser/src/shortcuts.rs b/crates/parser/src/shortcuts.rs index 3d28f814c9..e14526aa73 100644 --- a/crates/parser/src/shortcuts.rs +++ b/crates/parser/src/shortcuts.rs @@ -16,6 +16,7 @@ use crate::{ SyntaxKind::{self, *}, }; +#[derive(Debug)] pub enum StrStep<'a> { Token { kind: SyntaxKind, text: &'a str }, Enter { kind: SyntaxKind }, @@ -75,7 +76,8 @@ impl<'a> LexedStr<'a> { builder.eat_trivias(); (builder.sink)(StrStep::Exit); } - State::PendingEnter | State::Normal => unreachable!(), + State::PendingEnter => (), + State::Normal => unreachable!(), } let is_eof = builder.pos == builder.lexed.len(); |