From 620e33f5417e68d2743ab7599cfd9c678c2f624c Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Jan 2020 13:50:19 -0500 Subject: [PATCH] dbg! on unexpected toplevel token --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c37ed3e..08ee9aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -425,7 +425,7 @@ impl<'a> StyleSheetParser<'a> { TokenKind::Symbol(Symbol::BitAnd) => { return Err(SassError::new("Base-level rules cannot contain the parent-selector-referencing character '&'.", pos.clone())) } - _ => match self.lexer.next() { + _ => match dbg!(self.lexer.next()) { Some(Token { pos, .. }) => self.error(pos, "unexpected toplevel token"), _ => unsafe { std::hint::unreachable_unchecked() }, },