fix: resolve unresolved types and type mismatches in list and common modules
This commit is contained in:
@@ -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> {
|
||||
Self::try_from(s)
|
||||
Ok(Self::try_from(s)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(",");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user