Skip to content

Commit

Permalink
tests: use values() for tls_roots_map iter
Browse files Browse the repository at this point in the history
It's more idiomatic to use `values()` on a map when the desire is to
iterate just the values vs iterating the map and discarding each key
from the iterated tuple.
  • Loading branch information
cpu committed Aug 7, 2024
1 parent a7b62a3 commit 8e411bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpki-roots/tests/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn new_generated_code_is_fresh() {
let (mut subject, mut spki, mut name_constraints) =
(String::new(), String::new(), String::new());

for (_, root) in tls_roots_map {
for root in tls_roots_map.values() {
// Verify the DER FP matches the metadata FP.
let der = root.der();
let calculated_fp = digest::digest(&digest::SHA256, &der);
Expand Down

0 comments on commit 8e411bc

Please sign in to comment.