removed unused enum variant

This commit is contained in:
Erin 2021-07-29 23:04:04 +02:00 committed by ondra05
parent 241f2261d1
commit e3cfaaf32c

View file

@ -13,7 +13,6 @@ pub enum ErrorKind {
SyntaxError(String), SyntaxError(String),
UnexpectedEof, UnexpectedEof,
UnexpectedToken(Token), UnexpectedToken(Token),
InvalidIdentifier,
UnknownVariable(String), UnknownVariable(String),
MeloVariable(String), MeloVariable(String),
TopLevelBreak, TopLevelBreak,
@ -52,7 +51,6 @@ impl Display for ErrorKind {
ErrorKind::SyntaxError(desc) => write!(f, "syntax error: {}", desc), ErrorKind::SyntaxError(desc) => write!(f, "syntax error: {}", desc),
ErrorKind::UnexpectedEof => write!(f, "unexpected end of file"), ErrorKind::UnexpectedEof => write!(f, "unexpected end of file"),
ErrorKind::UnexpectedToken(token) => write!(f, "unexpected token {:?}", token), ErrorKind::UnexpectedToken(token) => write!(f, "unexpected token {:?}", token),
ErrorKind::InvalidIdentifier => write!(f, "invalid identifier"),
ErrorKind::UnknownVariable(name) => write!(f, "unknown identifier \"{}\"", name), ErrorKind::UnknownVariable(name) => write!(f, "unknown identifier \"{}\"", name),
ErrorKind::MeloVariable(name) => write!(f, "banned variable \"{}\"", name), ErrorKind::MeloVariable(name) => write!(f, "banned variable \"{}\"", name),
ErrorKind::TopLevelBreak => write!(f, "can only `break` out of a loop"), ErrorKind::TopLevelBreak => write!(f, "can only `break` out of a loop"),