mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Remove useless sort
The data coming in is already sorted. We should not need to sort it a second time
This commit is contained in:
@@ -133,7 +133,6 @@ fn build_tree(biggest_ones: Vec<(String, u64)>, depth: Option<u64>) -> Node {
|
||||
children: Vec::default(),
|
||||
};
|
||||
recursively_build_tree(&mut top_parent, n, depth);
|
||||
top_parent.children.sort_unstable()
|
||||
}
|
||||
top_parent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user