diff options
author | Aria Shrimpton <me@aria.rip> | 2024-03-10 18:37:40 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-03-10 18:37:40 +0000 |
commit | b6fe87f7666a445bf7f55965b306e5a9d48bf42d (patch) | |
tree | b0be8464db0e6b76252b97a81664f08ca57792a8 /src/crates/cli | |
parent | 9a4cbc8c2690abfc1069bf6ab4f6584016358c00 (diff) |
improve comparison output & nsplit alg
Diffstat (limited to 'src/crates/cli')
-rw-r--r-- | src/crates/cli/src/select.rs | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/crates/cli/src/select.rs b/src/crates/cli/src/select.rs index 60285b8..cb4ed8b 100644 --- a/src/crates/cli/src/select.rs +++ b/src/crates/cli/src/select.rs @@ -70,34 +70,7 @@ impl State { ); } - let mut builder = Builder::default(); - - if assignments_results.is_empty() { - continue; - } - - let header = { - let mut header = vec!["assignment"]; - assignments_results - .iter() - .next() - .unwrap() - .1 - .keys() - .for_each(|k| header.push(k)); - header - }; - builder.set_header(header.clone()); - - for (assignment, benchmark_results) in assignments_results.iter() { - let mut record = vec![assignment.to_string()]; - for key in header.iter().skip(1) { - record.push(format!("{:?}", benchmark_results.get(*key).unwrap())); - } - builder.push_record(record); - } - - self.print_table_raw(builder.build()); + self.print_table(assignments_results); } Ok(()) } |