Delete unused Display for pretty printer Token
This commit is contained in:
parent
237949b6c8
commit
eec6016ec3
1 changed files with 0 additions and 12 deletions
|
@ -137,7 +137,6 @@ mod ring;
|
|||
use ring::RingBuffer;
|
||||
use std::borrow::Cow;
|
||||
use std::collections::VecDeque;
|
||||
use std::fmt;
|
||||
|
||||
/// How to break. Described in more detail in the module docs.
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
|
@ -175,17 +174,6 @@ impl Token {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Token {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match *self {
|
||||
Token::String(ref s) => write!(f, "STR({},{})", s, s.len()),
|
||||
Token::Break(_) => f.write_str("BREAK"),
|
||||
Token::Begin(_) => f.write_str("BEGIN"),
|
||||
Token::End => f.write_str("END"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
enum PrintStackBreak {
|
||||
Fits,
|
||||
|
|
Loading…
Add table
Reference in a new issue