aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 17:05:59 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-04-26 17:05:59 +0000
commit8440d59dd69594d8f09e640a02f0494544385d61 (patch)
treeee549f132ffd3fa44469d1e80813c1ac3c4b4dcd /src/errors.rs
parentMerge pull request #76 from KSXGitHub/pullrequest.hashed-password (diff)
downloadminiserve-8440d59dd69594d8f09e640a02f0494544385d61.tar.gz
miniserve-8440d59dd69594d8f09e640a02f0494544385d61.zip
Cargo fmt
Diffstat (limited to '')
-rw-r--r--src/errors.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 833e9c4..9f0a418 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -33,7 +33,10 @@ pub enum ContextualErrorKind {
InvalidAuthFormat,
/// This error might occure if the hash method is neither sha256 nor sha512
- #[fail(display = "{} is not a valid hashing method. Expected sha256 or sha512", _0)]
+ #[fail(
+ display = "{} is not a valid hashing method. Expected sha256 or sha512",
+ _0
+ )]
InvalidHashMethod(String),
/// This error might occur if the HTTP auth hash password is not a valid hex code