Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuzhao committed Jun 28, 2024
1 parent 537af7f commit 7a1521f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hoard/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ impl EmptyClass {
SuperBlock::DATA_BYTES >> block.size_class.log_bytes() << block.size_class.log_bytes();
let u = block.used_bytes();
if u == 0 {
return 0;
0
} else {
return 1 + (Self::EMPTINESS_CLASSES * u / t);
1 + (Self::EMPTINESS_CLASSES * u / t)
}
}

Expand Down

0 comments on commit 7a1521f

Please sign in to comment.