diff --git a/src/config.rs b/src/config.rs index 03e0926..4e3a151 100644 --- a/src/config.rs +++ b/src/config.rs @@ -81,7 +81,7 @@ pub struct TableConfig { pub truncation_indicator: String, } -#[derive(Debug, Clone, Serialize, Deserialize, Default)] +#[derive(Debug, Clone, Serialize, Default)] pub struct ColumnConfig { pub name: String, pub label: String, diff --git a/src/modes/common.rs b/src/modes/common.rs index e2ed5b7..a7cd6d8 100644 --- a/src/modes/common.rs +++ b/src/modes/common.rs @@ -199,15 +199,18 @@ pub fn create_table_with_config(table_config: &crate::config::TableConfig) -> Ta table.load_preset(comfy_table::presets::NOTHING); } // Add more presets as needed - table } } // Apply modifiers for modifier in &table_config.modifiers { match modifier.as_str() { - "UTF8_SOLID_INNER_BORDERS" => table.apply_modifier(comfy_table::modifiers::UTF8_SOLID_INNER_BORDERS), - "UTF8_ROUND_CORNERS" => table.apply_modifier(comfy_table::modifiers::UTF8_ROUND_CORNERS), + "UTF8_SOLID_INNER_BORDERS" => { + table.apply_modifier(comfy_table::modifiers::UTF8_SOLID_INNER_BORDERS); + } + "UTF8_ROUND_CORNERS" => { + table.apply_modifier(comfy_table::modifiers::UTF8_ROUND_CORNERS); + } _ => {} // Ignore unknown modifiers } } diff --git a/src/modes/list.rs b/src/modes/list.rs index 378c6bc..9abd071 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -195,7 +195,7 @@ pub fn mode_list( } // Apply padding if specified - if let Some((left_padding, right_padding)) = column.padding { + if let Some((_left_padding, _right_padding)) = column.padding { // Note: comfy-table doesn't directly support padding, so we'd need to handle this // by adding spaces to the content, or use a different approach }