fix: Resolve compilation errors and warnings
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user