From e3cfaaf32c2133399786c1a3f74fc6c7f21f4668 Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 29 Jul 2021 23:04:04 +0200 Subject: [PATCH] removed unused enum variant --- src/error.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 35a62a37..24cd96d0 100644 --- a/src/error.rs +++ b/src/error.rs @@ -13,7 +13,6 @@ pub enum ErrorKind { SyntaxError(String), UnexpectedEof, UnexpectedToken(Token), - InvalidIdentifier, UnknownVariable(String), MeloVariable(String), TopLevelBreak, @@ -52,7 +51,6 @@ impl Display for ErrorKind { ErrorKind::SyntaxError(desc) => write!(f, "syntax error: {}", desc), ErrorKind::UnexpectedEof => write!(f, "unexpected end of file"), ErrorKind::UnexpectedToken(token) => write!(f, "unexpected token {:?}", token), - ErrorKind::InvalidIdentifier => write!(f, "invalid identifier"), ErrorKind::UnknownVariable(name) => write!(f, "unknown identifier \"{}\"", name), ErrorKind::MeloVariable(name) => write!(f, "banned variable \"{}\"", name), ErrorKind::TopLevelBreak => write!(f, "can only `break` out of a loop"),