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:
@@ -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(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user