File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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) ) ;
You can’t perform that action at this time.
0 commit comments