Fix clippy warnings

This commit is contained in:
gwenn
2018-05-04 19:55:55 +02:00
parent 361d4ca602
commit 994d40da26
13 changed files with 33 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ impl FromSql for time::Timespec {
time::strptime(s, SQLITE_DATETIME_FMT)
.or_else(|err| {
time::strptime(s, SQLITE_DATETIME_FMT_LEGACY)
.or(Err(FromSqlError::Other(Box::new(err))))})})
.or_else(|_| Err(FromSqlError::Other(Box::new(err))))})})
.map(|tm| tm.to_timespec())
}
}