summaryrefslogtreecommitdiff
path: root/src/parse/parser.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-21 16:38:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-21 17:30:21 +0200
commit0dd4ae0a7ac0c247078df492469ff20b8a90c886 (patch)
tree07a55343b9ccab3fe76b0f1b0de9d1be310d8b14 /src/parse/parser.rs
parentf38eb10c2b54bd13ccef119454839f6a66448462 (diff)
Prune derives
Diffstat (limited to 'src/parse/parser.rs')
-rw-r--r--src/parse/parser.rs10
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())
- }
-}