WRI4NUEYWAR564IJSMBOTRZEYFUIV222VZEQOCFIVQTUNNW27MEAC
KDTQAQLO2CBYBW4RJWWGO63NHXJWZNZUTZW44BI7IFFLQSLLVZ7QC
3XWRSM4KTLCHN4PLO3LIOEG5YTFBCW4ZZPWGVS2FVYWK3D6H2TSQC
CUZW3MMNXRGZEPWDI6M6QIAZPEQHA35KMXO7VWTPYBLXVLT7CMOAC
CHJDF2CR5BZF5FQN6ZQQKU6DS4UXTDYMPPCCCBOWR6DGWNW3QR4QC
DMZZMIA7AL72S6YU5LB2PS5V5WNALGKPCGX2SIGXWTKFHRXL7ALQC
XAB427Y43CDIGVHXNEOZC4J4KX5PRFJIX6NJADQR6LP6OWHPNC2AC
4LFON6GEZVZPITBA7AZCNARXHUSRHWGFYQMR2X6JEVBGHKHECVTAC
4FCEKFETVRRY5ZNAO44GFUCEIXYCM3J2MRTUQ7CUYZ2ZHANWI2MAC
2TXT5LGDNIJNMM4EORWKP35BGREM3RPDQ7IUEXZFKQ4N6LGNPLWQC
KPQC63IAT2RE3DTDMWE7Z6N5DL4RRWB7QCONH4EB36RTQ7V3DULQC
VUSECHH6JNFVRXXS5ZP7NBGO3BQWBJZCWRJCYF2SKOGZLKRYLK4QC
name = "thiserror"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
Git(git2::Error),
Io(io::Error),
Template(TemplateError),
TemplateFile(TemplateFileError),
Parser(conventional::ParseError),
Render(RenderError),
Url(url::ParseError),
#[error(transparent)]
Git(#[from] git2::Error),
#[error(transparent)]
Io(#[from] io::Error),
#[error(transparent)]
Template(#[from] TemplateError),
#[error(transparent)]
TemplateFile(#[from] TemplateFileError),
#[error(transparent)]
Parser(#[from] conventional::ParseError),
#[error(transparent)]
Render(#[from] RenderError),
#[error(transparent)]
Url(#[from] url::ParseError),
#[error("check error")]
}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match *self {
Self::Git(ref e) => write!(f, "{}", e),
Self::Io(ref e) => write!(f, "{}", e),
Self::Template(ref e) => write!(f, "{}", e),
Self::TemplateFile(ref e) => write!(f, "{}", e),
Self::Parser(ref e) => write!(f, "{}", e),
Self::Render(ref e) => write!(f, "{}", e),
Self::Url(ref e) => write!(f, "{}", e),
Self::Check => write!(f, "check error"),
Self::CancelledByUser => write!(f, "canceled by user"),
}
}
}
impl std::error::Error for Error {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match *self {
Self::Git(ref e) => Some(e),
Self::Io(ref e) => Some(e),
Self::Template(ref e) => Some(e),
Self::TemplateFile(ref e) => Some(e),
Self::Parser(ref e) => Some(e),
Self::Render(ref e) => Some(e),
Self::Url(ref e) => Some(e),
Self::Check => None,
Self::CancelledByUser => None,
}
}
}
impl From<git2::Error> for Error {
fn from(e: git2::Error) -> Self {
Self::Git(e)
}
impl From<io::Error> for Error {
fn from(e: io::Error) -> Self {
Self::Io(e)
}
}
impl From<TemplateError> for Error {
fn from(e: TemplateError) -> Self {
Self::Template(e)
}
}
impl From<TemplateFileError> for Error {
fn from(e: TemplateFileError) -> Self {
Self::TemplateFile(e)
}
}
impl From<RenderError> for Error {
fn from(e: RenderError) -> Self {
Self::Render(e)
}
}
impl From<url::ParseError> for Error {
fn from(e: url::ParseError) -> Self {
Self::Url(e)
}
}
impl From<conventional::ParseError> for Error {
fn from(e: conventional::ParseError) -> Self {
Self::Parser(e)
}
}