Skip to content

Commit aeea8f0

Browse files
committed
Use values() to iterate map values
Clippy emits: warning: you seem to want to iterate on a map's values As suggested, iterate using `values`.
1 parent f7e696e commit aeea8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/bip158.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ mod test {
573573
assert!(filter.match_all(block_hash, &mut txmap.iter()
574574
.filter_map(|(_, s)| if !s.is_empty() { Some(s.as_bytes()) } else { None })).unwrap());
575575

576-
for (_, script) in &txmap {
576+
for script in txmap.values() {
577577
let query = vec![script];
578578
if !script.is_empty () {
579579
assert!(filter.match_any(block_hash, &mut query.iter()

0 commit comments

Comments
 (0)