Skip to content

Commit

Permalink
Merge pull request #77 from rex4539/clippy
Browse files Browse the repository at this point in the history
fix: fix clippy warnings
  • Loading branch information
nuttycom authored Feb 5, 2025
2 parents 644f489 + f788181 commit 5e9f612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/wallet/sync/defrag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl App {
// to ensure we don't require more cells than we have (which would cause the
// blocks around the chain tip to never be rendered).
let area = defrag_area.area();
let blocks_per_cell = (block_count + area - 1) / area;
let blocks_per_cell = block_count.div_ceil(area);
let blocks_per_row = blocks_per_cell * u32::from(defrag_area.width);

// Split the area into cells.
Expand Down

0 comments on commit 5e9f612

Please sign in to comment.