Skip to content

Commit 0f32a26

Browse files
committed
Fix manual_div_ceil
1 parent 8603c5a commit 0f32a26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_config/src/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
860860
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
861861
});
862862

863-
let rows = (fields.len() + (columns - 1)) / columns;
863+
let rows = fields.len().div_ceil(columns);
864864

865865
let column_widths = (0..columns)
866866
.map(|column| {

0 commit comments

Comments
 (0)