mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 00:54:19 +01:00
fix: clippy + new errors
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user