aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2019-05-10 18:17:55 +0000
committerGitHub <noreply@github.com>2019-05-10 18:17:55 +0000
commit1b92ddb24ec9d364d8170912e047317eef726c7d (patch)
treec2ccd3786cb68b123bf90190b9d9c47ec34b9559 /src/errors.rs
parentMerge pull request #90 from boastful-squirrel/themed-errors (diff)
parentFix clippy (diff)
downloadminiserve-1b92ddb24ec9d364d8170912e047317eef726c7d.tar.gz
miniserve-1b92ddb24ec9d364d8170912e047317eef726c7d.zip
Merge pull request #112 from boastful-squirrel/fix-clippy
Fix Clippy warnings + cargo fmt
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 68f6d7d..2878e37 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -32,7 +32,10 @@ pub enum ContextualError {
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