F5QLL7RNKWB6DNLUZ7VKGTTYDVCH37YGR26SHZBIVAR37JJMQTXQC
impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.inner.error())
impl Debug for Error {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
self.inner.debug(formatter)
fn display(&self, f: &mut fmt::Formatter) -> fmt::Result {
if f.alternate() {
self.print_chain(f)
} else {
write!(f, "{}", self.error())
}
}
fn debug(&self, f: &mut fmt::Formatter) -> fmt::Result {
if f.alternate() {
return Debug::fmt(self.error(), f);
}
self.print_chain(f)?;
writeln!(f)?;