fix: resolve from_str usage and filter method errors, remove unused imports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::io;
|
||||
use std::path::PathBuf;
|
||||
use anyhow::{Context, Result, Error, anyhow};
|
||||
use anyhow::{Context, Result, anyhow};
|
||||
use rusqlite::Connection;
|
||||
use gethostname::gethostname;
|
||||
use strum::IntoEnumIterator;
|
||||
@@ -74,7 +74,7 @@ pub fn mode_status(_cmd: &mut Command, args: crate::Args, data_path: PathBuf, db
|
||||
|
||||
|
||||
let default_type = match args.item.compression {
|
||||
Some(compression_name) => CompressionType::from_str(&compression_name)
|
||||
Some(compression_name) => FromStr::from_str(&compression_name)
|
||||
.context(anyhow!("Invalid compression type {}", compression_name))?,
|
||||
None => default_type()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user