Make clippy happy

They're a happy clip now.
This commit is contained in:
Loïc Lecrenier 2022-11-08 15:31:08 +01:00
parent 1e464e87fc
commit f5454dfa60

View File

@ -693,7 +693,7 @@ pub(crate) mod date_deserializer {
DeserializeDateOption::Before => Ok(datetime), DeserializeDateOption::Before => Ok(datetime),
DeserializeDateOption::After => { DeserializeDateOption::After => {
let datetime = let datetime =
datetime.checked_add(Duration::days(1)).unwrap_or_else(|| datetime); datetime.checked_add(Duration::days(1)).unwrap_or(datetime);
Ok(datetime) Ok(datetime)
} }
} }