fix: small bugs

This commit is contained in:
Levy A.
2025-01-14 06:49:17 -03:00
parent 6e0ce3dd01
commit d3582a382f
3 changed files with 3 additions and 3 deletions

View File

@@ -474,7 +474,7 @@ impl Statement {
Ok(Rows::new(stmt))
}
pub fn reset(&self) {
pub fn reset(&mut self) {
self.state.reset();
}

View File

@@ -54,7 +54,7 @@ impl ProgramBuilder {
next_free_register: 1,
next_free_label: 0,
next_free_cursor_id: 0,
next_free_parameter_index: 1.into(),
next_free_parameter_index: 1.try_into().unwrap(),
insns: Vec::new(),
next_insn_label: None,
cursor_ref: Vec::new(),

View File

@@ -252,7 +252,7 @@ impl ProgramState {
self.parameters.get(usize::from(index) - 1)
}
pub fn reset(&self) {
pub fn reset(&mut self) {
self.parameters.clear();
}
}