diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-05-23 04:02:04 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-05-23 04:02:27 +0000 |
commit | 9be8445e94a3b8b33d80c4f2903074c7ba8a29e8 (patch) | |
tree | 9972260aac0f3ac4cce18006a6ed109a26558512 | |
parent | Merge pull request #803 from svenstaro/dependabot/cargo/rustls-0.20.6 (diff) | |
download | miniserve-9be8445e94a3b8b33d80c4f2903074c7ba8a29e8.tar.gz miniserve-9be8445e94a3b8b33d80c4f2903074c7ba8a29e8.zip |
Fix new clippy lints
Diffstat (limited to '')
-rw-r--r-- | src/auth.rs | 4 | ||||
-rw-r--r-- | src/listing.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/auth.rs b/src/auth.rs index b4717d1..1b11557 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -21,7 +21,7 @@ impl From<BasicAuth> for BasicAuthParams { } } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] /// `password` field of `RequiredAuth` pub enum RequiredAuthPassword { Plain(String), @@ -29,7 +29,7 @@ pub enum RequiredAuthPassword { Sha512(Vec<u8>), } -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] /// Authentication structure to match `BasicAuthParams` against pub struct RequiredAuth { pub username: String, diff --git a/src/listing.rs b/src/listing.rs index 805c5a0..38e971e 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -69,7 +69,7 @@ pub enum SortingOrder { Descending, } -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] /// Possible entry types pub enum EntryType { /// Entry is a directory |