From dcd32e1ec83459d0ae3763aaf84a3310c7a64a8a Mon Sep 17 00:00:00 2001 From: "Levy A." Date: Mon, 3 Feb 2025 16:58:13 -0300 Subject: [PATCH] fix: clippy + new errors --- tests/integration/fuzz/mod.rs | 4 ++-- tests/integration/query_processing/test_read_path.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/fuzz/mod.rs b/tests/integration/fuzz/mod.rs index 925bfe771..9cab41964 100644 --- a/tests/integration/fuzz/mod.rs +++ b/tests/integration/fuzz/mod.rs @@ -59,8 +59,8 @@ mod tests { limbo_core::Value::Null => rusqlite::types::Value::Null, limbo_core::Value::Integer(x) => rusqlite::types::Value::Integer(*x), limbo_core::Value::Float(x) => rusqlite::types::Value::Real(*x), - limbo_core::Value::Text(x) => rusqlite::types::Value::Text((*x).clone()), - limbo_core::Value::Blob(x) => rusqlite::types::Value::Blob((*x).clone()), + limbo_core::Value::Text(x) => rusqlite::types::Value::Text(x.to_string()), + limbo_core::Value::Blob(x) => rusqlite::types::Value::Blob(x.to_vec()), }) .collect() } diff --git a/tests/integration/query_processing/test_read_path.rs b/tests/integration/query_processing/test_read_path.rs index 55f72c1cc..ef7e30a4b 100644 --- a/tests/integration/query_processing/test_read_path.rs +++ b/tests/integration/query_processing/test_read_path.rs @@ -46,12 +46,12 @@ fn test_statement_bind() -> anyhow::Result<()> { let mut stmt = conn.prepare("select ?, ?1, :named, ?3, ?4")?; - stmt.bind_at(1.try_into()?, Value::Text(&"hello".to_string())); + stmt.bind_at(1.try_into()?, Value::Text("hello")); let i = stmt.parameters().index(":named").unwrap(); stmt.bind_at(i, Value::Integer(42)); - stmt.bind_at(3.try_into()?, Value::Blob(&vec![0x1, 0x2, 0x3])); + stmt.bind_at(3.try_into()?, Value::Blob(&[0x1, 0x2, 0x3])); stmt.bind_at(4.try_into()?, Value::Float(0.5));