Skip to content

Commit 291bd7b

Browse files
committed
Wrap section and symbol name to 80 characters to improve readability of table output
1 parent d5055e7 commit 291bd7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

collector/src/bin/collector.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use humansize::{format_size, BINARY};
2323
use rayon::iter::{IndexedParallelIterator, IntoParallelRefIterator, ParallelIterator};
2424
use tabled::builder::Builder;
2525
use tabled::settings::object::{Columns, Rows};
26-
use tabled::settings::{Alignment, Border, Color, Modify};
26+
use tabled::settings::{Alignment, Border, Color, Modify, Width};
2727
use tokio::runtime::Runtime;
2828

2929
use collector::api::next_artifact::NextArtifact;
@@ -1486,6 +1486,7 @@ fn print_binary_stats(
14861486
}
14871487
}
14881488

1489+
table.with(Modify::new(Columns::first()).with(Width::wrap(80)));
14891490
table.with(Modify::new(Columns::new(1..)).with(Alignment::right()));
14901491
table.with(tabled::settings::Style::sharp());
14911492
table.with(

0 commit comments

Comments
 (0)