Skip to content

Commit b802693

Browse files
committed
consume the results of the select
1 parent 635c7bf commit b802693

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ fn begin(
198198
if !scans.is_empty() {
199199
let mut scan = txn.prepare_cached(SCAN)?;
200200
for random_hex in &scans {
201-
_ = scan.query_map([random_hex], |row| row.get::<_, i32>(0))?;
201+
// Consume the results
202+
scan.query_map([random_hex], |row| row.get::<_, i32>(0))?
203+
.filter_map(Result::ok)
204+
.for_each(drop);
202205
}
203206
}
204207

0 commit comments

Comments
 (0)