make clippy happy

This commit is contained in:
Anton Harniakou 2025-05-29 17:06:46 +03:00
parent defb2e52e8
commit a3298c3ce8

View file

@ -106,12 +106,7 @@ impl Database {
let mut stmt = stmt.inner.borrow_mut();
match stmt.step().map_err(into_napi_error)? {
limbo_core::StepResult::Row => {
let row: Vec<_> = stmt
.row()
.unwrap()
.get_values()
.map(|x| x.clone())
.collect();
let row: Vec<_> = stmt.row().unwrap().get_values().cloned().collect();
to_js_value(&env, &row[0])
}
limbo_core::StepResult::Done => Ok(env.get_undefined()?.into_unknown()),