We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.into_sorted_by
1 parent debc50c commit b1501c3Copy full SHA for b1501c3
1 file changed
tests/deduplicate_hardlinks.rs
@@ -58,11 +58,10 @@ fn multiple_hardlinks_to_a_single_file_with_deduplication() {
58
.add(file_size);
59
assert_eq!(actual_size, expected_size);
60
61
- let actual_children = {
62
- let mut children = tree.children.clone();
63
- children.sort_by(|a, b| a.name.cmp(&b.name));
64
- children
65
- };
+ let actual_children = tree
+ .children
+ .clone()
+ .into_sorted_by(|a, b| a.name.cmp(&b.name));
66
let expected_children: Vec<_> = {
67
let links = (0..links).map(|num| format!("link.{num}"));
68
let node = |name| Reflection {
0 commit comments