refactor: clippy::implicit_clone (#974)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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] =
|
||||
|
||||
Reference in New Issue
Block a user