mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Make clippy happy
They're a happy clip now.
This commit is contained in:
parent
1e464e87fc
commit
f5454dfa60
@ -693,7 +693,7 @@ pub(crate) mod date_deserializer {
|
||||
DeserializeDateOption::Before => Ok(datetime),
|
||||
DeserializeDateOption::After => {
|
||||
let datetime =
|
||||
datetime.checked_add(Duration::days(1)).unwrap_or_else(|| datetime);
|
||||
datetime.checked_add(Duration::days(1)).unwrap_or(datetime);
|
||||
Ok(datetime)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user