fix: Correct table cell alignment and string conversion

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-08 18:12:22 -03:00
parent 9f328a376f
commit 1a0478a545
4 changed files with 30 additions and 34 deletions

View File

@@ -142,17 +142,14 @@ fn build_compression_table(compression_info: &Vec<CompressionInfo>) -> Table {
compression_table.add_row(vec![
info.compression_type.clone(),
match info.found {
true => Cell::new("Yes").fg(Color::Green).to_string(),
false => Cell::new("No").fg(Color::Red).to_string(),
true => "Yes".to_string(),
false => "No".to_string(),
},
match info.default {
true => Cell::new("Yes").fg(Color::Green).to_string(),
false => Cell::new("No").to_string(),
},
match info.binary.as_str() {
"<INTERNAL>" => Cell::new(&info.binary).fg(Color::DarkGrey).to_string(),
_ => info.binary.clone(),
true => "Yes".to_string(),
false => "No".to_string(),
},
info.binary.clone(),
info.compress.clone(),
info.decompress.clone(),
]);