diff options
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | src/rate_limiter.rs | 2 | ||||
-rw-r--r-- | src/web/mod.rs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d67d44f..6914fd9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,6 @@ build, test and lint: - rustup component add rustfmt - ./make-translated-templates - cargo build - - cargo clippy --no-deps + - cargo clippy --tests --no-deps - cargo fmt --all -- --check - cargo test --all 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, ); } |