Skip to content

Commit b5777a7

Browse files
committed
Refactor for loop declaration
The for loop can be written more simply. Change it to iterate over `.values()`.
1 parent aabdaa3 commit b5777a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration_test/tests/raw_transactions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ fn raw_transactions__submit_package__modelled() {
388388
.expect("failed to submit package")
389389
.into_model()
390390
.expect("failed to submit package");
391-
for (_, tx_result) in &res.tx_results {
391+
for tx_result in res.tx_results.values() {
392392
assert!(tx_result.error.is_some());
393393
}
394394
assert!(res.replaced_transactions.is_empty());
@@ -416,7 +416,7 @@ fn raw_transactions__submit_package__modelled() {
416416
.expect("failed to submit package")
417417
.into_model()
418418
.expect("failed to submit package");
419-
for (_, tx_result) in &res.tx_results {
419+
for tx_result in res.tx_results.values() {
420420
assert!(tx_result.error.is_some());
421421
}
422422
assert!(res.replaced_transactions.is_empty());

0 commit comments

Comments
 (0)