mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-31 05:48:56 +08:00
Fix clippy warnings
This commit is contained in:
@@ -143,10 +143,7 @@ impl FromSql for f64 {
|
||||
|
||||
impl FromSql for bool {
|
||||
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self> {
|
||||
i64::column_result(value).map(|i| match i {
|
||||
0 => false,
|
||||
_ => true,
|
||||
})
|
||||
i64::column_result(value).map(|i| !matches!(i, 0))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user