From 9fce1a15299d60c7197689970a47edf92ea14cf1 Mon Sep 17 00:00:00 2001 From: "Tom D." <15268361+anastygnome@users.noreply.github.com> Date: Wed, 21 May 2025 10:29:21 +0200 Subject: [PATCH] tsort: remove duplicate sorting step (#7965) * tsort: remove duplicate sorting step * tsort: remove unnecessary spaces --------- Co-authored-by: Daniel Hofstetter --- src/uu/tsort/src/tsort.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/uu/tsort/src/tsort.rs b/src/uu/tsort/src/tsort.rs index c94f050f0..3f7e89e99 100644 --- a/src/uu/tsort/src/tsort.rs +++ b/src/uu/tsort/src/tsort.rs @@ -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.