clean w/ clippy
This commit is contained in:
@ -507,7 +507,7 @@ ORDER BY departure DESC
|
||||
|
||||
let dep = NaiveDateTime::parse_from_str(&log.departure, "%Y-%m-%dT%H:%M").unwrap();
|
||||
let arr = NaiveDateTime::parse_from_str(&log.arrival, "%Y-%m-%dT%H:%M").unwrap();
|
||||
if arr.timestamp() < dep.timestamp() {
|
||||
if arr.and_utc().timestamp() < dep.and_utc().timestamp() {
|
||||
return Err(LogbookUpdateError::ArrivalNotAfterDeparture);
|
||||
}
|
||||
let today = Local::now().date_naive();
|
||||
|
Reference in New Issue
Block a user