Skip to content

Commit b976712

Browse files
shuaKobzol
authored andcommitted
PR: diff title, no line separators
1 parent c25e13a commit b976712

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

summarize/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ fn diff(opt: DiffOpt) -> Result<(), Box<dyn Error + Send + Sync>> {
106106
}
107107

108108
let mut table = Table::new();
109+
table.set_format(*prettytable::format::consts::FORMAT_NO_LINESEP_WITH_TITLE);
109110

110-
table.add_row(row!(
111+
table.set_titles(row!(
111112
"Item",
112113
"Self Time",
113114
"Self Time Change",
@@ -156,8 +157,9 @@ fn diff(opt: DiffOpt) -> Result<(), Box<dyn Error + Send + Sync>> {
156157
println!("Total cpu time: {:?}", results.total_time);
157158

158159
let mut table = Table::new();
160+
table.set_format(*prettytable::format::consts::FORMAT_NO_LINESEP_WITH_TITLE);
159161

160-
table.add_row(row!("Item", "Artifact Size Change",));
162+
table.set_titles(row!("Item", "Artifact Size Change",));
161163

162164
for artifact_size in results.artifact_sizes {
163165
let exclude = opt.exclude.iter().any(|e| artifact_size.label.contains(e));

0 commit comments

Comments
 (0)