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
|
// Use 12:00 for chrono parser
|
||||||
"{} 12:00",
|
"{} 12:00",
|
||||||
// Replace french by english month
|
// Replace french by english month
|
||||||
re.replace_all(date, |cap: &Captures| {
|
re.replace_all(date, |cap: &Captures| match &cap[0] {
|
||||||
match &cap[0] {
|
month if dico.contains_key(month) => dico.get(month).unwrap(),
|
||||||
month if dico.contains_key(month) => dico.get(month).unwrap(),
|
month => {
|
||||||
month => panic!("Unknown month: {}", month),
|
panic!("Unknown month: {}", month)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue