refactor: DisplayData

This commit is contained in:
andy.boot
2023-01-29 10:23:39 +00:00
parent 5a3e15d0ce
commit 7d13fe972c
3 changed files with 49 additions and 59 deletions
+1 -4
View File
@@ -106,10 +106,7 @@ fn always_add_children<'a>(
}
// Finds children of current, if in allowed_nodes adds them as children to new DisplayNode
fn recursive_rebuilder(
allowed_nodes: &HashMap<&Path, &Node>,
current: &Node,
) -> DisplayNode {
fn recursive_rebuilder(allowed_nodes: &HashMap<&Path, &Node>, current: &Node) -> DisplayNode {
let new_children: Vec<_> = current
.children
.iter()