mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-12 06:21:40 +00:00
Remove Env error variant
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user