diff options
Diffstat (limited to 'src/parse/parser.rs')
| -rw-r--r-- | src/parse/parser.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 83e77a6a..c035319d 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -1,4 +1,3 @@ -use std::fmt::{self, Debug, Formatter}; use std::ops::Range; use super::{TokenMode, Tokens}; @@ -28,7 +27,6 @@ pub struct Parser<'s> { } /// A logical group of tokens, e.g. `[...]`. -#[derive(Debug, Copy, Clone)] struct GroupEntry { /// The start index of the group. Used by `Parser::end_group` to return the /// group's full span. @@ -391,11 +389,3 @@ impl<'s> Parser<'s> { self.groups.iter().any(|g| g.kind == kind) } } - -impl Debug for Parser<'_> { - fn fmt(&self, f: &mut Formatter) -> fmt::Result { - let mut s = self.tokens.scanner(); - s.jump(self.next_start()); - write!(f, "Parser({}|{})", s.eaten(), s.rest()) - } -} |
