urlexpand 0.3.0

Expand / Unshorten an exhaustive list of Shortened URL's
Documentation
#[derive(Debug, PartialEq, thiserror::Error)]
pub enum Error {
    #[error("tokio runtime error")]
    StdIo(String),
    #[error("reqwest header error")]
    ReqwestHeader(String),
    #[error("reqwest error")]
    Reqwest(String),
    #[error("no string")]
    NoString,
    #[error("unknown error")]
    Unknown,
}

impl From<reqwest::header::ToStrError> for Error {
    fn from(a: reqwest::header::ToStrError) -> Self {
        Self::ReqwestHeader(a.to_string())
    }
}

impl From<reqwest::Error> for Error {
    fn from(a: reqwest::Error) -> Self {
        Self::Reqwest(a.to_string())
    }
}

impl From<std::io::Error> for Error {
    fn from(a: std::io::Error) -> Self {
        Self::StdIo(a.to_string())
    }
}