From e015420be77f4373bbe9702f78a3920c7716bfe5 Mon Sep 17 00:00:00 2001 From: Dustin Martin Date: Wed, 3 Jan 2024 12:49:42 -0500 Subject: [PATCH] Use new `Table::modify()` method --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8bc716c..16f7ade 100644 --- a/src/main.rs +++ b/src/main.rs @@ -185,7 +185,7 @@ 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); @@ -193,7 +193,7 @@ async fn main() -> Result<(), anyhow::Error> { "\n{}", table .with(Style::sharp()) - .with(Modify::new(Columns::last()).with(Width::wrap(80))) + .modify(Columns::last(), Width::wrap(80)) .to_string() ); }