Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdavid committed Jan 27, 2025
1 parent dc5024f commit c038ace
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rs/ic_os/build_tools/icsum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ mod tests {
file.rewind().unwrap();

let mut holes = 0;
iterate_blocks(&mut file, |block| match block {
Block::Hole => holes += 1,
_ => {}
iterate_blocks(&mut file, |block| {
if *block == Block::Hole {
holes += 1;
}
})
.unwrap();

Expand Down

0 comments on commit c038ace

Please sign in to comment.