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

This commit is contained in:
Alexander Lyon
2023-03-16 10:20:42 +00:00
parent aabff0e8eb
commit 614941f70f

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)