Skip to content

Commit

Permalink
Error - add #[from] attr for the source of Error::Other
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Oct 28, 2020
1 parent c180118 commit eba7ee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/message/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub enum Error {
},
#[error("Other error: {}", source)]
Other {
#[from]
source: Box<dyn std::error::Error + Send + Sync>,
},
}
Expand Down

0 comments on commit eba7ee9

Please sign in to comment.