Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Nov 28, 2024
1 parent 733b1e9 commit d413c6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/result_recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,7 @@ impl ResultRecorder {

fn column_padding(column_name: &str, max_item_length: usize) -> String {
let column_label_len = column_name.chars().count();
let padding_size = if max_item_length > column_label_len {
max_item_length - column_label_len
} else {
0
};
let padding_size = max_item_length.saturating_sub(column_label_len);
" ".repeat(padding_size)
}

Expand Down

0 comments on commit d413c6c

Please sign in to comment.