mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
core/vdbe: Don't clear cursors in ProgramState::reset()
We don't need to clear the cursors explicitly because OpenRead and OpenWrite will anyway replace them.
This commit is contained in:
@@ -395,7 +395,6 @@ impl ProgramState {
|
||||
self.registers
|
||||
.resize_with(max_resgisters, || Register::Value(Value::Null));
|
||||
}
|
||||
self.cursors.iter_mut().for_each(|c| *c = None);
|
||||
self.registers
|
||||
.iter_mut()
|
||||
.for_each(|r| *r = Register::Value(Value::Null));
|
||||
|
||||
Reference in New Issue
Block a user