perf(flatten): fewer clones

This commit is contained in:
EdJoPaTo
2024-05-01 16:39:39 +02:00
parent fdd2c5436a
commit 537dc8021e
2 changed files with 24 additions and 43 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ where
&self,
items: &'a [TreeItem<'a, Identifier>],
) -> Vec<Flattened<'a, Identifier>> {
flatten(&self.opened, items)
flatten(&self.opened, items, &[])
}
/// Selects the given identifier.