Skip to content

Commit

Permalink
Merge pull request #807 from gwenn/clippy
Browse files Browse the repository at this point in the history
Fix clippy warning
  • Loading branch information
gwenn authored Sep 29, 2024
2 parents 2729709 + ccf416e commit ceafb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ fn page_completions<C: Candidate, H: Helper>(
let num_cols = cols / max_width;

let mut pause_row = s.out.get_rows() - 1;
let num_rows = (candidates.len() + num_cols - 1) / num_cols;
let num_rows = candidates.len().div_ceil(num_cols);
let mut ab = String::new();
for row in 0..num_rows {
if row == pause_row {
Expand Down

0 comments on commit ceafb7f

Please sign in to comment.