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 bde1b94 commit a90e8e6Copy full SHA for a90e8e6
clippy_config/src/conf.rs
@@ -860,7 +860,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
860
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
861
});
862
863
- let rows = (fields.len() + (columns - 1)) / columns;
+ let rows = fields.len().div_ceil(columns);
864
865
let column_widths = (0..columns)
866
.map(|column| {
0 commit comments