summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2022-02-28 17:52:51 +0100
committerVincent Breitmoser <look@my.amazin.horse>2022-03-06 23:30:12 +0000
commit59c42c033d5e5dbedbe5223d3226bce8725845c8 (patch)
treefcf27f0f024ab5ea77db098c2487b61d151496c5 /src
parented924f439ba2f8a57975391cd6e53585aaf6b505 (diff)
Apply clippy to the tests, too
Diffstat (limited to 'src')
-rw-r--r--src/rate_limiter.rs2
-rw-r--r--src/web/mod.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/rate_limiter.rs b/src/rate_limiter.rs
index 5a43ab9..ebc1039 100644
--- a/src/rate_limiter.rs
+++ b/src/rate_limiter.rs
@@ -67,7 +67,7 @@ mod tests {
assert!(rate_limiter.action_perform("action".to_owned()));
- assert_eq!(false, rate_limiter.action_perform("action".to_owned()));
+ assert!(!rate_limiter.action_perform("action".to_owned()));
}
#[test]
diff --git a/src/web/mod.rs b/src/web/mod.rs
index f3f9d5d..412f282 100644
--- a/src/web/mod.rs
+++ b/src/web/mod.rs
@@ -1103,7 +1103,7 @@ pub mod tests {
let (wkd_hash, domain) = crate::database::wkd::encode_wkd(addr).unwrap();
check_null_response(
- &client,
+ client,
&format!("/.well-known/openpgpkey/{}/hu/{}", domain, wkd_hash),
);
}
@@ -1137,9 +1137,9 @@ pub mod tests {
let (wkd_hash, domain) = crate::database::wkd::encode_wkd(addr).unwrap();
check_wkd_response(
- &client,
+ client,
&format!("/.well-known/openpgpkey/{}/hu/{}", domain, wkd_hash),
- &tpk,
+ tpk,
nr_uids,
);
}