Skip to content

Commit 389bd2f

Browse files
committed
Fix manual_div_ceil
1 parent b4c9be6 commit 389bd2f

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
@@ -862,7 +862,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
862862
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
863863
});
864864

865-
let rows = (fields.len() + (columns - 1)) / columns;
865+
let rows = fields.len().div_ceil(columns);
866866

867867
let column_widths = (0..columns)
868868
.map(|column| {

0 commit comments

Comments
 (0)