mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Remove unused variable on RowIterator
This commit is contained in:
parent
901a534e0a
commit
979115ee59
1 changed files with 4 additions and 4 deletions
|
@ -59,17 +59,17 @@ impl Database {
|
|||
#[wasm_bindgen]
|
||||
pub struct RowIterator {
|
||||
inner: RefCell<limbo_core::Statement>,
|
||||
raw: bool,
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl RowIterator {
|
||||
fn new(inner: RefCell<limbo_core::Statement>, raw: bool) -> Self {
|
||||
Self { inner, raw }
|
||||
fn new(inner: RefCell<limbo_core::Statement>) -> Self {
|
||||
Self { inner }
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn next(&mut self) -> JsValue {
|
||||
|
||||
match self.inner.borrow_mut().step() {
|
||||
Ok(limbo_core::RowResult::Row(row)) => {
|
||||
let row_array = Array::new();
|
||||
|
@ -148,7 +148,7 @@ impl Statement {
|
|||
|
||||
#[wasm_bindgen]
|
||||
pub fn iterate(self) -> JsValue {
|
||||
let iterator = RowIterator::new(self.inner, self.raw);
|
||||
let iterator = RowIterator::new(self.inner);
|
||||
let iterator_obj = Object::new();
|
||||
|
||||
// Define the next method that will be called by JavaScript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue