Remove Env error variant

This commit is contained in:
Sergey Pepyakin
2017-11-27 16:49:34 +03:00
parent bf0db90643
commit 0e1db10465

View File

@ -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<String> 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),