You've already forked uutils-args
mirror of
https://github.com/uutils/uutils-args.git
synced 2026-06-10 16:13:08 -07:00
implement Debug for ErrorKind
This commit is contained in:
+7
-1
@@ -66,7 +66,7 @@ impl StdError for Error {}
|
||||
|
||||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
self.kind.fmt(f)
|
||||
std::fmt::Display::fmt(&self.kind, f)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,12 @@ impl Debug for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl Debug for ErrorKind {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
std::fmt::Display::fmt(self, f)
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for ErrorKind {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "error: ")?;
|
||||
|
||||
Reference in New Issue
Block a user