cargo fmt

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-09-09 16:42:55 +08:00
parent ff6a0ea82a
commit 250ada183a
27 changed files with 534 additions and 448 deletions

View File

@@ -83,10 +83,7 @@ impl Error {
}
}
pub(crate) fn new(kind: ErrorKind) -> Self {
Self {
kind,
cause: None,
}
Self { kind, cause: None }
}
pub(crate) fn with_cause<E>(kind: ErrorKind, cause: E) -> Self