From ae67e67921c4eae9c082e63484eb84307b37b5a6 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Sat, 10 May 2025 13:54:53 -0300 Subject: [PATCH] fix: resolve unresolved types and type mismatches in list and common modules --- src/modes/common.rs | 2 +- src/modes/list.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modes/common.rs b/src/modes/common.rs index 9e6e227..c5abbff 100644 --- a/src/modes/common.rs +++ b/src/modes/common.rs @@ -77,7 +77,7 @@ impl ColumnType { /// Returns a Result with error message if the string is not a valid ColumnType pub fn from_str(s: &str) -> anyhow::Result { - Self::try_from(s) + Ok(Self::try_from(s)?) } } diff --git a/src/modes/list.rs b/src/modes/list.rs index 1fe4963..7dd49c2 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -24,7 +24,7 @@ pub fn mode_list( ) -> anyhow::Result<()> { if !ids.is_empty() { cmd.error( - ErrorKind::InvalidInput, + clap::error::ErrorKind::InvalidInput, "ID given, you can only supply tags when using --list", ) .exit(); @@ -64,7 +64,7 @@ pub fn mode_list( } let mut table = Table::new(); - table.set_format(*format::consts::FORMAT_CLEAN); + table.set_format(*prettytable::format::consts::FORMAT_CLEAN); let list_format = args.options.list_format.split(",");