From a955b2a0c6023fdaef046b5c96d163f81c627b2d Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Sat, 10 May 2025 13:59:04 -0300 Subject: [PATCH] refactor: remove unused imports from various files --- src/modes/get.rs | 1 - src/modes/info.rs | 2 +- src/modes/list.rs | 1 - src/modes/status.rs | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modes/get.rs b/src/modes/get.rs index defca6f..4e178d6 100644 --- a/src/modes/get.rs +++ b/src/modes/get.rs @@ -1,7 +1,6 @@ use anyhow::anyhow; use crate::compression::CompressionType; -// use std::io::BufWriter; // Removed unused import use crate::modes::common::ColumnType; use clap::Command; use std::path::PathBuf; diff --git a/src/modes/info.rs b/src/modes/info.rs index 8950c42..19f2044 100644 --- a/src/modes/info.rs +++ b/src/modes/info.rs @@ -7,7 +7,7 @@ use std::str::FromStr; use crate::compression::get_engine; use crate::compression::CompressionType; use crate::db::{get_item, get_item_last, get_item_matching}; -use crate::modes::common::{format_size, get_format_box_chars_no_border_line_separator}; // Add function import +use crate::modes::common::{format_size, get_format_box_chars_no_border_line_separator}; use chrono::prelude::*; use is_terminal::IsTerminal; use prettytable::format; diff --git a/src/modes/list.rs b/src/modes/list.rs index 4ae350d..ced047f 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -12,7 +12,6 @@ use prettytable::row; use prettytable::{Attr, Cell, Row, Table}; use log::debug; use anyhow::anyhow; -use rusqlite::Connection; pub fn mode_list( cmd: &mut clap::Command, diff --git a/src/modes/status.rs b/src/modes/status.rs index f4b040f..8830405 100644 --- a/src/modes/status.rs +++ b/src/modes/status.rs @@ -5,7 +5,6 @@ use std::path::PathBuf; use strum::IntoEnumIterator; use crate::compression::default_type; -use crate::compression::program::CompressionEngineProgram; use crate::compression::CompressionType; use crate::compression::COMPRESSION_PROGRAMS; use std::str::FromStr;