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
|
/// 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)?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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(",");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user