Skip to content

Commit

Permalink
Use new Table::modify() method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartin committed Jan 3, 2024
1 parent 1854afe commit e015420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@ async fn main() -> Result<(), anyhow::Error> {
info!("Found {} matching resources", removed_resources.len());
if !removed_resources.is_empty() {
use tabled::{
settings::{object::Columns, Modify, Style, Width},
settings::{object::Columns, Style, Width},
Table,
};
let mut table = Table::new(removed_resources);
info!(
"\n{}",
table
.with(Style::sharp())
.with(Modify::new(Columns::last()).with(Width::wrap(80)))
.modify(Columns::last(), Width::wrap(80))
.to_string()
);
}
Expand Down

0 comments on commit e015420

Please sign in to comment.