From 8070f0b100fca951da5e1f3650c69de4d37b4da6 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 27 Jun 2024 20:21:55 +0000 Subject: [PATCH] automatic cargo CI changes --- members/libpt-cli/src/printing.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/members/libpt-cli/src/printing.rs b/members/libpt-cli/src/printing.rs index 615b6e9..563a59b 100644 --- a/members/libpt-cli/src/printing.rs +++ b/members/libpt-cli/src/printing.rs @@ -45,7 +45,7 @@ pub fn blockfmt(content: impl ToString, color: Color) -> String { color, presets::UTF8_BORDERS_ONLY, ContentArrangement::DynamicFullWidth, - CellAlignment::Center + CellAlignment::Center, ) } @@ -89,17 +89,14 @@ pub fn blockfmt_advanced( color: Color, preset: &str, arrangement: ContentArrangement, - alignment: CellAlignment + alignment: CellAlignment, ) -> String { let mut table = Table::new(); table .load_preset(preset) .set_content_arrangement(arrangement) .add_row(vec![content.to_string()]); - table - .column_mut(0) - .unwrap() - .set_cell_alignment(alignment); + table.column_mut(0).unwrap().set_cell_alignment(alignment); format!("{}", style(table).fg(color)) }