Merge pull request #6 from arlyon/impl-error

Make jmap_client::Error implement std::error::Error using thiserror
This commit is contained in:
Mauro D
2023-03-17 08:17:45 +01:00
committed by GitHub

View File

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