Make jmap_client::Error implement std::error::Error using thiserror

main
Alexander Lyon 2023-03-16 10:20:42 +00:00
parent aabff0e8eb
commit 614941f70f
1 changed files with 2 additions and 0 deletions

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)