forked from Anri/cal8tor
Resolve E0308 ??
This commit is contained in:
parent
e18b11a5fe
commit
e1fc4b7a51
1 changed files with 4 additions and 4 deletions
|
@ -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] {
|
||||
re.replace_all(date, |cap: &Captures| match &cap[0] {
|
||||
month if dico.contains_key(month) => dico.get(month).unwrap(),
|
||||
month => panic!("Unknown month: {}", month),
|
||||
month => {
|
||||
panic!("Unknown month: {}", month)
|
||||
}
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue