Skip to content

Commit

Permalink
drop parens.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk authored and arajasek committed Apr 23, 2023
1 parent 19617fe commit f528119
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ipld/hamt/tests/hamt_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ fn for_each_ranged(factory: HamtFactory, stats: Option<BSStats>, mut cids: CidCh
if next.is_none() {
break;
} else {
#[allow(clippy::unused_parens)]
assert_eq!(next.clone().unwrap(), kvs[(iterations * PAGE_SIZE)].0);
assert_eq!(next.clone().unwrap(), kvs[iterations * PAGE_SIZE].0);
cursor = next;
}
}
Expand Down Expand Up @@ -529,8 +528,7 @@ fn for_each_ranged(factory: HamtFactory, stats: Option<BSStats>, mut cids: CidCh
if next.is_none() {
break;
} else {
#[allow(clippy::unused_parens)]
assert_eq!(next.clone().unwrap(), kvs[(iterations * PAGE_SIZE)].0);
assert_eq!(next.clone().unwrap(), kvs[iterations * PAGE_SIZE].0);
cursor = next;
}
}
Expand Down

0 comments on commit f528119

Please sign in to comment.