Merge pull request #6 from arlyon/impl-error

Make jmap_client::Error implement std::error::Error using thiserror
main
Mauro D 2023-03-17 08:17:45 +01:00 committed by GitHub
commit d340fabdc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ pub enum Error {
WebSocket(tokio_tungstenite::tungstenite::error::Error),
}
impl std::error::Error for Error {}
impl From<reqwest::Error> for Error {
fn from(e: reqwest::Error) -> Self {
Error::Transport(e)