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(",");