From 5a147db4c59341d01f2db0c4c10e6e012eb14cd9 Mon Sep 17 00:00:00 2001 From: DuckDuckWhale Date: Fri, 27 Nov 2020 02:27:06 -0800 Subject: [PATCH] Fix: excess whitespace in certain cases --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 58b6b61..48cfc22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,7 +66,7 @@ fn main() { times.len(), if times.is_empty() { '.' } else { ':' } ); - if let Some(max_title_len) = times.iter().map(|(_, title)| title.len()).max() { + if let Some(max_title_len) = times.iter().map(|(_, title)| title.width()).max() { let max_len = max_title_len + 2; println!("┌──────────┬{}┐", "─".repeat(max_len)); for (time, title) in times {