mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
refactor: clippy::inefficient_to_string (#974)
This commit is contained in:
parent
a558b19c9a
commit
8536760e78
2 changed files with 2 additions and 1 deletions
|
@ -67,6 +67,7 @@ unsafe_code = "forbid"
|
|||
cloned_instead_of_copied = "warn"
|
||||
explicit_iter_loop = "warn"
|
||||
implicit_clone = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
missing_const_for_fn = "warn"
|
||||
needless_for_each = "warn"
|
||||
semicolon_if_nothing_returned = "warn"
|
||||
|
|
|
@ -1197,7 +1197,7 @@ mod tests {
|
|||
|
||||
/// helper method to take a vector of strings and return a vector of list items
|
||||
fn list_items(items: Vec<&str>) -> Vec<ListItem> {
|
||||
items.iter().map(|i| ListItem::new(i.to_string())).collect()
|
||||
items.into_iter().map(ListItem::new).collect()
|
||||
}
|
||||
|
||||
/// helper method to render a widget to an empty buffer with the default state
|
||||
|
|
Loading…
Reference in a new issue