diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-15 22:57:14 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-18 21:05:26 +0200 |
commit | eb8edc2ca8cc762efae5f7cd140aee6f5bc3a3a4 (patch) | |
tree | 020980cbe733df3fb9cf98e2e670d2ab938d13d0 | |
parent | faa43d64913f70265626b5cdf6cdfe49d5e1840b (diff) | |
download | rebel-eb8edc2ca8cc762efae5f7cd140aee6f5bc3a3a4.tar rebel-eb8edc2ca8cc762efae5f7cd140aee6f5bc3a3a4.zip |
executor: summary: sort outputs by name
-rw-r--r-- | src/executor.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/executor.rs b/src/executor.rs index 2350749..10e6c4d 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -367,7 +367,10 @@ impl<'ctx> Executor<'ctx> { } if !task.output.outputs.is_empty() { println!(" outputs:"); - for (output, hash) in &task.output.outputs { + + let mut outputs: Box<[_]> = task.output.outputs.iter().collect(); + outputs.sort_by_key(|(output, _)| *output); + for (output, hash) in outputs.iter() { println!(" {}: {}", output, hash); } } |