diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-02-19 05:08:02 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-02-19 05:08:02 +0000 |
commit | dc92b4e4107885b8a891ce3406e0fca236ccb2d5 (patch) | |
tree | 9be317f18894d11c2954bc344c591be8e89454aa /src/errors.rs | |
parent | Merge pull request #444 from svenstaro/dependabot/cargo/chrono-humanize-0.1.2 (diff) | |
download | miniserve-dc92b4e4107885b8a891ce3406e0fca236ccb2d5.tar.gz miniserve-dc92b4e4107885b8a891ce3406e0fca236ccb2d5.zip |
Fix lints
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs index cb6efa8..1330390 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -8,7 +8,7 @@ pub enum ContextualError { /// Any kind of IO errors #[fail(display = "{}\ncaused by: {}", _0, _1)] - IOError(String, std::io::Error), + IoError(String, std::io::Error), /// MultipartError, which might occur during file upload, when processing the multipart request fails #[fail(display = "Failed to process multipart request\ncaused by: {}", _0)] @@ -59,15 +59,15 @@ pub enum ContextualError { display = "An error occured during HTTP authentication\ncaused by: {}", _0 )] - HTTPAuthenticationError(Box<ContextualError>), + HttpAuthenticationError(Box<ContextualError>), /// This error might occur when the HTTP credentials are not correct #[fail(display = "Invalid credentials for HTTP authentication")] - InvalidHTTPCredentials, + InvalidHttpCredentials, /// This error might occur when an HTTP request is invalid #[fail(display = "Invalid HTTP request\ncaused by: {}", _0)] - InvalidHTTPRequestError(String), + InvalidHttpRequestError(String), /// This error might occur when trying to access a page that does not exist #[fail(display = "Route {} could not be found", _0)] |