diff options
author | Aria Shrimpton <me@aria.rip> | 2024-02-24 22:48:56 +0000 |
---|---|---|
committer | Aria Shrimpton <me@aria.rip> | 2024-02-24 22:48:56 +0000 |
commit | 24839876714d39ebee3052b0c58113af311e3a45 (patch) | |
tree | 46437a781c91dd7c98cd6d99510c370b590d752c | |
parent | 2e5a2e316174be7788a5f08213d596b5969e777b (diff) |
fix cost model not getting printed in latex
-rw-r--r-- | src/crates/cli/src/display.rs | 7 | ||||
-rw-r--r-- | src/crates/cli/src/model.rs | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/crates/cli/src/display.rs b/src/crates/cli/src/display.rs index 38e5c44..d8e2821 100644 --- a/src/crates/cli/src/display.rs +++ b/src/crates/cli/src/display.rs @@ -63,6 +63,13 @@ impl State { ) })) } + + pub fn print_table_raw(&self, mut t: Table) { + println!("{}", t.with(Style::sharp())); + if self.with_latex { + print_latex(t); + } + } } fn print_latex(t: Table) { diff --git a/src/crates/cli/src/model.rs b/src/crates/cli/src/model.rs index d6824b6..9379cc3 100644 --- a/src/crates/cli/src/model.rs +++ b/src/crates/cli/src/model.rs @@ -34,7 +34,7 @@ impl State { ]); } - println!("{}", builder.build().with(Style::sharp())); + self.print_table_raw(builder.build()); Ok(()) } |