refactor(clippy): adapt to new lints

This commit is contained in:
EdJoPaTo
2021-05-13 09:24:54 +02:00
parent 45083fc332
commit 15fbc26617
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ fn internal<'a>(
result.push(Flattened {
item,
identifier: child_identifier.to_vec(),
identifier: child_identifier.clone(),
});
if opened.contains(&child_identifier) {
+1 -1
View File
@@ -34,7 +34,7 @@ impl Default for TreeState {
impl TreeState {
pub fn selected(&self) -> Vec<usize> {
self.selected.to_owned()
self.selected.clone()
}
pub fn select<I>(&mut self, identifier: I)