mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-27 13:01:29 +00:00
Fixed use of std::fmt rather than core::fmt (#22)
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
This commit is contained in:
parent
3621a4b66e
commit
be64ee415a
@ -10,13 +10,13 @@ where
|
||||
self.context
|
||||
.as_ref()
|
||||
.map(|context| context.display(self.error(), f))
|
||||
.unwrap_or_else(|| std::fmt::Display::fmt(self.error(), f))
|
||||
.unwrap_or_else(|| core::fmt::Display::fmt(self.error(), f))
|
||||
}
|
||||
|
||||
pub(crate) fn debug(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.context
|
||||
.as_ref()
|
||||
.map(|context| context.debug(self.error(), f))
|
||||
.unwrap_or_else(|| std::fmt::Debug::fmt(self.error(), f))
|
||||
.unwrap_or_else(|| core::fmt::Debug::fmt(self.error(), f))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user