Merge pull request #159 from cakebaker/bump_tabled

Bump `tabled` and adapt `lsmem` to a renamed struct
This commit is contained in:
Sylvestre Ledru
2024-12-13 17:41:00 +01:00
committed by GitHub
3 changed files with 29 additions and 31 deletions

View File

@@ -19,7 +19,7 @@ use tabled::{
settings::{
location::ByColumnName,
object::{self, Rows},
Alignment, Disable, Modify, Style,
Alignment, Modify, Remove, Style,
},
Table, Tabled,
};
@@ -500,11 +500,11 @@ fn print_table(lsmem: &Lsmem, opts: &Options) {
.with(Modify::new(object::Columns::new(1..)).with(Alignment::right()));
// the default version
table.with(Disable::column(ByColumnName::new("NODE")));
table.with(Disable::column(ByColumnName::new("ZONES")));
table.with(Remove::column(ByColumnName::new("NODE")));
table.with(Remove::column(ByColumnName::new("ZONES")));
if opts.noheadings {
table.with(Disable::row(Rows::first()));
table.with(Remove::row(Rows::first()));
}
println!("{table}");