We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
manual_div_ceil
1 parent b4c9be6 commit 389bd2fCopy full SHA for 389bd2f
clippy_config/src/conf.rs
@@ -862,7 +862,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
862
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
863
});
864
865
- let rows = (fields.len() + (columns - 1)) / columns;
+ let rows = fields.len().div_ceil(columns);
866
867
let column_widths = (0..columns)
868
.map(|column| {
0 commit comments