From ce4114a078125f68a4c739baebfb0255e2280501 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Wed, 4 Sep 2024 02:52:54 -0400 Subject: [PATCH] Normalize display of adapter information in `--rga-list-adapters` --- src/bin/rga.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/bin/rga.rs b/src/bin/rga.rs index b1ebb82..c3ed99d 100644 --- a/src/bin/rga.rs +++ b/src/bin/rga.rs @@ -36,17 +36,12 @@ fn list_adapters(args: RgaConfig) -> Result<()> { }) .collect::>() .join(", "); - let mime_text = if slow_matchers.is_empty() { - "".to_owned() - } else { - format!("Mime Types: {slow_matchers}") - }; print!( - " - **{name}**\n {desc} \n Extensions: {matchers} \n {mime} \n", + " - **{name}**\n {desc} \n Extensions: {matchers} \n Mime Types: {mime} \n", name = meta.name, desc = meta.description.replace('\n', "\n "), matchers = matchers, - mime = mime_text + mime = slow_matchers, ); println!(); };