From eba7ee9cb4c002034820cff9ee21bbdf14c43c0a Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Wed, 28 Oct 2020 14:32:01 +0200 Subject: [PATCH] Error - add `#[from]` attr for the source of `Error::Other` Signed-off-by: Lachezar Lechev --- src/message/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/message/error.rs b/src/message/error.rs index d77be5c9..76fc740b 100644 --- a/src/message/error.rs +++ b/src/message/error.rs @@ -44,6 +44,7 @@ pub enum Error { }, #[error("Other error: {}", source)] Other { + #[from] source: Box, }, }