From 825ff7a451bd246c1ba17ddc5de9e099e54bbcee Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 10:51:00 -0300 Subject: [PATCH] fix: remove unused import and method --- src/modes/common.rs | 13 ------------- src/modes/diff.rs | 1 - 2 files changed, 14 deletions(-) diff --git a/src/modes/common.rs b/src/modes/common.rs index 5664240..b93fcff 100644 --- a/src/modes/common.rs +++ b/src/modes/common.rs @@ -60,19 +60,6 @@ pub enum ColumnType { } impl ColumnType { - /// Returns the human-readable string representation of the column type - pub fn as_str(&self) -> &str { - match self { - ColumnType::Id => "id", - ColumnType::Time => "time", - ColumnType::Size => "size", - ColumnType::Compression => "compression", - ColumnType::FileSize => "filesize", - ColumnType::FilePath => "filepath", - ColumnType::Tags => "tags", - ColumnType::Meta => "meta", - } - } /// Returns a Result with error message if the string is not a valid ColumnType pub fn from_str(s: &str) -> anyhow::Result { diff --git a/src/modes/diff.rs b/src/modes/diff.rs index 3370f8c..c44589e 100644 --- a/src/modes/diff.rs +++ b/src/modes/diff.rs @@ -1,5 +1,4 @@ use crate::compression::CompressionType; -use crate::modes::common::format_size; use std::path::PathBuf; use std::str::FromStr;