aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorkhai96_ <hvksmr1996@gmail.com>2019-05-01 07:00:30 +0000
committerkhai96_ <hvksmr1996@gmail.com>2019-05-01 07:00:30 +0000
commit3da956c5af09c89e325928efb8dabe55d7fd6983 (patch)
treeece715cfb53638314f1ce1595bd49caf3505c74a /src/auth.rs
parentAdd clippy to CI (diff)
downloadminiserve-3da956c5af09c89e325928efb8dabe55d7fd6983.tar.gz
miniserve-3da956c5af09c89e325928efb8dabe55d7fd6983.zip
Ignore clippy warnings
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 8e6532b..040e81f 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -75,6 +75,7 @@ pub fn match_auth(basic_auth: BasicAuthParams, required_auth: &RequiredAuth) ->
}
/// Return `true` if hashing of `password` by `T` algorithm equals to `hash`
+#[allow(clippy::ptr_arg)]
pub fn compare_hash<T: Digest>(password: String, hash: &Vec<u8>) -> bool {
get_hash::<T>(password) == *hash
}