From c2b8a07277b4b0c8b0491799a9d1fb0fcc3c6b5f Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Mon, 31 Dec 2018 13:59:44 +0100 Subject: [PATCH] Add back convertion from failure to default std error --- src/compat.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compat.rs b/src/compat.rs index bbe2564..c0fc045 100644 --- a/src/compat.rs +++ b/src/compat.rs @@ -39,6 +39,12 @@ with_std! { } } + impl From for Box { + fn from(error: Error) -> Box { + Box::new(Compat { error }) + } + } + impl From for Box { fn from(error: Error) -> Box { Box::new(Compat { error })