refactor: clippy::implicit_clone (#974)

This commit is contained in:
EdJoPaTo 2024-02-27 13:28:53 +01:00 committed by Josh McKinney
parent 183c07ef43
commit a558b19c9a
No known key found for this signature in database
GPG key ID: 722287396A903BC5
2 changed files with 2 additions and 1 deletions

View file

@ -66,6 +66,7 @@ unsafe_code = "forbid"
[lints.clippy]
cloned_instead_of_copied = "warn"
explicit_iter_loop = "warn"
implicit_clone = "warn"
missing_const_for_fn = "warn"
needless_for_each = "warn"
semicolon_if_nothing_returned = "warn"

View file

@ -736,7 +736,7 @@ impl Table<'_> {
// Divide the space between each column equally
vec![Constraint::Length(max_width / col_count.max(1) as u16); col_count]
} else {
self.widths.to_vec()
self.widths.clone()
};
// this will always allocate a selection area
let [_selection_area, columns_area] =