From ef88b9914a0513037fdee6c8a48cfbf4ab2a5c1d Mon Sep 17 00:00:00 2001 From: FHaggs Date: Fri, 25 Jul 2025 15:41:49 -0300 Subject: [PATCH] Fix clippy warnings --- tests/integration/fuzz/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/fuzz/mod.rs b/tests/integration/fuzz/mod.rs index ad7811d21..66b7d2058 100644 --- a/tests/integration/fuzz/mod.rs +++ b/tests/integration/fuzz/mod.rs @@ -1448,16 +1448,16 @@ mod tests { let limbo_result = limbo_exec_rows(&db, &limbo_conn, query); let sqlite_result = sqlite_exec_rows(&sqlite_conn, query); - let limbo_val = match limbo_result.get(0).and_then(|row| row.get(0)) { + let limbo_val = match limbo_result.first().and_then(|row| row.first()) { Some(Value::Real(f)) => *f, Some(Value::Null) | None => 0.0, - _ => panic!("Unexpected type in limbo result: {:?}", limbo_result), + _ => panic!("Unexpected type in limbo result: {limbo_result:?}"), }; - let sqlite_val = match sqlite_result.get(0).and_then(|row| row.get(0)) { + let sqlite_val = match sqlite_result.first().and_then(|row| row.first()) { Some(Value::Real(f)) => *f, Some(Value::Null) | None => 0.0, - _ => panic!("Unexpected type in sqlite result: {:?}", sqlite_result), + _ => panic!("Unexpected type in limbo result: {limbo_result:?}"), }; assert_eq!(limbo_val, sqlite_val, "seed: {seed}, values: {values:?}"); }