mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-21 16:05:17 +01:00
chore: fix clippy warnings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user