From e1fc4b7a51979534f80d07ca19b82e3c6d426e15 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 7 Sep 2023 18:19:29 +0200 Subject: [PATCH] Resolve E0308 ?? --- src/info.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/info.rs b/src/info.rs index 1bf6c6d..0caf672 100644 --- a/src/info.rs +++ b/src/info.rs @@ -93,10 +93,10 @@ fn anglophonization(date: &str) -> String { // Use 12:00 for chrono parser "{} 12:00", // Replace french by english month - re.replace_all(date, |cap: &Captures| { - match &cap[0] { - month if dico.contains_key(month) => dico.get(month).unwrap(), - month => panic!("Unknown month: {}", month), + re.replace_all(date, |cap: &Captures| match &cap[0] { + month if dico.contains_key(month) => dico.get(month).unwrap(), + month => { + panic!("Unknown month: {}", month) } }) )