chore: fix clippy warnings

This commit is contained in:
Nils Koch
2025-06-13 21:20:26 +01:00
parent 1a0d4f500f
commit 2827b86917
95 changed files with 902 additions and 992 deletions

View File

@@ -96,8 +96,7 @@ fn test_sequential_overflow_page() -> anyhow::Result<()> {
huge_texts.push(huge_text);
}
for i in 0..iterations {
let huge_text = &huge_texts[i];
for (i, huge_text) in huge_texts.iter().enumerate().take(iterations) {
let insert_query = format!("INSERT INTO test VALUES ({}, '{}')", i, huge_text.as_str());
match conn.query(insert_query) {
Ok(Some(ref mut rows)) => loop {
@@ -168,7 +167,7 @@ fn test_sequential_write() -> anyhow::Result<()> {
run_query(&tmp_db, &conn, &insert_query)?;
let mut current_read_index = 0;
run_query_on_row(&tmp_db, &conn, &list_query, |row: &Row| {
run_query_on_row(&tmp_db, &conn, list_query, |row: &Row| {
let first_value = row.get::<&Value>(0).expect("missing id");
let id = match first_value {
limbo_core::Value::Integer(i) => *i as i32,