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`.
This commit is contained in:
Tobin C. Harding 2022-06-07 15:21:29 +10:00
parent 38ff025122
commit 73066e7e48
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ mod test {
assert!(filter.match_all(block_hash, &mut txmap.iter()
.filter_map(|(_, s)| if !s.is_empty() { Some(s.as_bytes()) } else { None })).unwrap());
for (_, script) in &txmap {
for script in txmap.values() {
let query = vec![script];
if !script.is_empty () {
assert!(filter.match_any(block_hash, &mut query.iter()