fix: resolve from_str usage and filter method errors, remove unused imports

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 09:44:25 -03:00
parent 48b4bb6e3a
commit 94fff32244
3 changed files with 14 additions and 6 deletions

View File

@@ -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()
};