diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index 8cd6613..be06ec2 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -58,8 +58,6 @@ pub enum Error { Value(String), /// Interpreter (code) error. Interpreter(String), - /// Env module error. - Env(String), /// Native module error. Native(String), /// Trap. @@ -83,7 +81,6 @@ impl Into for Error { Error::Stack(s) => s, Error::Interpreter(s) => s, Error::Value(s) => s, - Error::Env(s) => s, Error::Native(s) => s, Error::Trap(s) => format!("trap: {}", s), Error::User(e) => format!("user: {}", e), @@ -106,7 +103,6 @@ impl ::std::fmt::Display for Error { Error::Stack(ref s) => write!(f, "Stack: {}", s), Error::Interpreter(ref s) => write!(f, "Interpreter: {}", s), Error::Value(ref s) => write!(f, "Value: {}", s), - Error::Env(ref s) => write!(f, "Env: {}", s), Error::Native(ref s) => write!(f, "Native: {}", s), Error::Trap(ref s) => write!(f, "Trap: {}", s), Error::User(ref e) => write!(f, "User: {}", e),