Make jmap_client::Error implement std::error::Error using thiserror
parent
aabff0e8eb
commit
614941f70f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue