mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-21 10:41:54 +00:00
Remove Env error variant
This commit is contained in:
@ -58,8 +58,6 @@ pub enum Error {
|
|||||||
Value(String),
|
Value(String),
|
||||||
/// Interpreter (code) error.
|
/// Interpreter (code) error.
|
||||||
Interpreter(String),
|
Interpreter(String),
|
||||||
/// Env module error.
|
|
||||||
Env(String),
|
|
||||||
/// Native module error.
|
/// Native module error.
|
||||||
Native(String),
|
Native(String),
|
||||||
/// Trap.
|
/// Trap.
|
||||||
@ -83,7 +81,6 @@ impl Into<String> for Error {
|
|||||||
Error::Stack(s) => s,
|
Error::Stack(s) => s,
|
||||||
Error::Interpreter(s) => s,
|
Error::Interpreter(s) => s,
|
||||||
Error::Value(s) => s,
|
Error::Value(s) => s,
|
||||||
Error::Env(s) => s,
|
|
||||||
Error::Native(s) => s,
|
Error::Native(s) => s,
|
||||||
Error::Trap(s) => format!("trap: {}", s),
|
Error::Trap(s) => format!("trap: {}", s),
|
||||||
Error::User(e) => format!("user: {}", e),
|
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::Stack(ref s) => write!(f, "Stack: {}", s),
|
||||||
Error::Interpreter(ref s) => write!(f, "Interpreter: {}", s),
|
Error::Interpreter(ref s) => write!(f, "Interpreter: {}", s),
|
||||||
Error::Value(ref s) => write!(f, "Value: {}", 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::Native(ref s) => write!(f, "Native: {}", s),
|
||||||
Error::Trap(ref s) => write!(f, "Trap: {}", s),
|
Error::Trap(ref s) => write!(f, "Trap: {}", s),
|
||||||
Error::User(ref e) => write!(f, "User: {}", e),
|
Error::User(ref e) => write!(f, "User: {}", e),
|
||||||
|
Reference in New Issue
Block a user