fix: remove unused import and method

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 10:51:00 -03:00
parent bb7ed06e9c
commit 825ff7a451
2 changed files with 0 additions and 14 deletions

View File

@@ -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<Self> {