fix: resolve unresolved types and type mismatches in list and common modules

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 13:54:53 -03:00
parent 0b82921506
commit ae67e67921
2 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ impl ColumnType {
/// Returns a Result with error message if the string is not a valid ColumnType /// Returns a Result with error message if the string is not a valid ColumnType
pub fn from_str(s: &str) -> anyhow::Result<Self> { pub fn from_str(s: &str) -> anyhow::Result<Self> {
Self::try_from(s) Ok(Self::try_from(s)?)
} }
} }

View File

@@ -24,7 +24,7 @@ pub fn mode_list(
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
if !ids.is_empty() { if !ids.is_empty() {
cmd.error( cmd.error(
ErrorKind::InvalidInput, clap::error::ErrorKind::InvalidInput,
"ID given, you can only supply tags when using --list", "ID given, you can only supply tags when using --list",
) )
.exit(); .exit();
@@ -64,7 +64,7 @@ pub fn mode_list(
} }
let mut table = Table::new(); 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(","); let list_format = args.options.list_format.split(",");