diff --git a/src/modes/common.rs b/src/modes/common.rs index fc8ab9c..d23df46 100644 --- a/src/modes/common.rs +++ b/src/modes/common.rs @@ -63,8 +63,6 @@ pub enum ColumnType { Time, Size, Compression, - DigestType, - DigestValue, FileSize, FilePath, Tags, diff --git a/src/modes/info.rs b/src/modes/info.rs index eb50f71..22233cc 100644 --- a/src/modes/info.rs +++ b/src/modes/info.rs @@ -144,28 +144,6 @@ fn show_item( Cell::new(&item_tags.join(" ")), ])); - // Corrected logic for item.digest_type: String - // Assuming you want to display it only if it's not empty. - let digest_type_string_val = item.digest_type.clone(); - if !digest_type_string_val.is_empty() { - table.add_row(Row::new(vec![ - Cell::new("Digest Type").with_style(Attr::Bold), - Cell::new(&digest_type_string_val), - ])); - } - - // Correct logic for item.digest_value: Option - let digest_value_opt = item.digest_value.clone(); - match digest_value_opt { - Some(dv_str) => { - table.add_row(Row::new(vec![ - Cell::new("Digest Value").with_style(Attr::Bold), - Cell::new(&dv_str), - ])); - } - None => { /* Do nothing if None, as per original logic */ } - } - for meta in crate::db::get_item_meta(conn, &item)? { let meta_name = format!("Meta: {}", &meta.name); table.add_row(Row::new(vec![ diff --git a/src/modes/list.rs b/src/modes/list.rs index be204f6..d54b9f1 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -141,15 +141,6 @@ pub fn mode_list( }, ColumnType::Compression => { Cell::new(&string_column(item.compression.to_string(), column_width)) - } - ColumnType::DigestType => { - Cell::new(&string_column(item.digest_type.to_string(), column_width)) - } - ColumnType::DigestValue => match item.digest_value { - Some(ref value) => Cell::new(&string_column(value.to_string(), column_width)), - None => Cell::new("Missing") - .with_style(Attr::ForegroundColor(color::RED)) - .with_style(Attr::Bold), }, ColumnType::FileSize => match item_path.metadata() { Ok(metadata) => Cell::new_align(