Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Jan 29, 2024
1 parent 157a107 commit 5df977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/formatting/borders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub(crate) fn draw_borders(
) -> Vec<String> {
// We know how many lines there should be. Initialize the vector with the rough correct amount.
// We might over allocate a bit, but that's better than under allocating.
let mut lines = if let Some(capacity) = rows.get(0).map(|lines| lines.len()) {
let mut lines = if let Some(capacity) = rows.first().map(|lines| lines.len()) {
// Lines * 2 -> Lines + delimiters
// + 5 -> header delimiters + header + bottom/top borders
Vec::with_capacity(capacity * 2 + 5)
Expand Down

0 comments on commit 5df977e

Please sign in to comment.