Small nits/clippy errors in vdbe

This commit is contained in:
PThorpe92
2025-03-19 23:18:08 -04:00
parent 676ddd4fb6
commit c83cc6dff2

View File

@@ -1062,8 +1062,7 @@ impl Program {
let rowid = {
let mut index_cursor = state.get_cursor(index_cursor_id);
let index_cursor = index_cursor.as_btree_mut();
let rowid = index_cursor.rowid()?;
rowid
index_cursor.rowid()?
};
let mut table_cursor = state.get_cursor(table_cursor_id);
let table_cursor = table_cursor.as_btree_mut();
@@ -1804,8 +1803,7 @@ impl Program {
unreachable!();
};
if (matches!(func, AggFunc::Count) && matches!(col, OwnedValue::Null))
== false
if !(matches!(func, AggFunc::Count) && matches!(col, OwnedValue::Null))
{
*count += 1;
};