mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-22 19:21:59 +00:00
from user error for error
This commit is contained in:
@ -74,6 +74,12 @@ impl ::std::fmt::Display for DummyUserError {
|
|||||||
fn fmt(&self, _f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> { Ok(()) }
|
fn fmt(&self, _f: &mut ::std::fmt::Formatter) -> Result<(), ::std::fmt::Error> { Ok(()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<U> From<U> for Error<U> where U: UserError + Sized {
|
||||||
|
fn from(e: U) -> Self {
|
||||||
|
Error::User(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mod env;
|
mod env;
|
||||||
mod env_native;
|
mod env_native;
|
||||||
mod imports;
|
mod imports;
|
||||||
|
Reference in New Issue
Block a user