mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
refactor: clippy::implicit_clone (#974)
This commit is contained in:
parent
183c07ef43
commit
a558b19c9a
2 changed files with 2 additions and 1 deletions
|
@ -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] =
|
||||
|
|
Loading…
Reference in a new issue