fix a lint

This commit is contained in:
Abraham Toriz 2021-12-13 14:01:43 -06:00
parent ec67e5480c
commit 01b198953f
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ pub fn parse_time(input: &str) -> Result<DateTime<Utc>> {
NUMBER_VALUES[&caps["hcten"]] + NUMBER_VALUES[&caps["hcdigit"]]
} else if let Some(m) = caps.name("htextualnum") {
m.as_str().parse().unwrap()
} else if let Some(_) = caps.name("half") {
} else if caps.name("half").is_some() {
0.5
} else {
unreachable!()