from user error for error

This commit is contained in:
NikVolf
2017-09-05 12:09:12 +02:00
parent 702511b4d6
commit 99319b54dc

View File

@ -74,6 +74,12 @@ impl ::std::fmt::Display for DummyUserError {
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_native;
mod imports;