Fix build on some older versions of Rust

This commit is contained in:
Thom Chiovoloni
2021-05-05 09:29:16 -07:00
parent ca7a28b442
commit cdce75328e
4 changed files with 7 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ impl FromSql for f64 {
impl FromSql for bool {
#[inline]
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> {
i64::column_result(value).map(|i| !matches!(i, 0))
i64::column_result(value).map(|i| i != 0)
}
}