Skip to content

Commit eba7ee9

Browse files
committed
Error - add #[from] attr for the source of Error::Other
Signed-off-by: Lachezar Lechev <[email protected]>
1 parent c180118 commit eba7ee9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/message/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub enum Error {
4444
},
4545
#[error("Other error: {}", source)]
4646
Other {
47+
#[from]
4748
source: Box<dyn std::error::Error + Send + Sync>,
4849
},
4950
}

0 commit comments

Comments
 (0)