use std::fmt;
#[derive(Debug)]
pub enum Error {
ReqwestError(reqwest::Error),
}
impl From<reqwest::Error> for Error {
fn from(error: reqwest::Error) -> Self {
Error::ReqwestError(error)
}
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match &self {
Error::ReqwestError(reqwest_error) => reqwest_error.fmt(f),
}
}
}
impl std::error::Error for Error {}