mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
fix: small bugs
This commit is contained in:
@@ -474,7 +474,7 @@ impl Statement {
|
||||
Ok(Rows::new(stmt))
|
||||
}
|
||||
|
||||
pub fn reset(&self) {
|
||||
pub fn reset(&mut self) {
|
||||
self.state.reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user