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:
parent
38ff025122
commit
73066e7e48
|
@ -573,7 +573,7 @@ mod test {
|
||||||
assert!(filter.match_all(block_hash, &mut txmap.iter()
|
assert!(filter.match_all(block_hash, &mut txmap.iter()
|
||||||
.filter_map(|(_, s)| if !s.is_empty() { Some(s.as_bytes()) } else { None })).unwrap());
|
.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];
|
let query = vec![script];
|
||||||
if !script.is_empty () {
|
if !script.is_empty () {
|
||||||
assert!(filter.match_any(block_hash, &mut query.iter()
|
assert!(filter.match_any(block_hash, &mut query.iter()
|
||||||
|
|
Loading…
Reference in New Issue