1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tsort: remove duplicate sorting step (#7965)

* tsort: remove duplicate sorting step

* tsort: remove unnecessary spaces

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
Tom D. 2025-05-21 10:29:21 +02:00 committed by GitHub
parent eff2cd997e
commit 9fce1a1529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,8 +161,6 @@ impl<'input> Graph<'input> {
}
})
.collect();
independent_nodes_queue.make_contiguous().sort_unstable(); // to make sure the resulting ordering is deterministic we need to order independent nodes
// FIXME: this doesn't comply entirely with the GNU coreutils implementation.
// To make sure the resulting ordering is deterministic we
// need to order independent nodes.