From 9f733b5a73cd54ff5e56d57ca6ce2a0477d79225 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sun, 28 Jan 2024 10:20:45 +0200 Subject: [PATCH] Simplify Statement::step() --- core/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib.rs b/core/lib.rs index 050f0c422..af651c56f 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -171,17 +171,17 @@ impl Statement { } } - pub fn step<'a>(&'a mut self) -> Result> { + pub fn step(&mut self) -> Result> { let result = self.program.step(&mut self.state, self.pager.clone())?; match result { vdbe::StepResult::Row(row) => { - return Ok(RowResult::Row(Row { values: row.values })); + Ok(RowResult::Row(Row { values: row.values })) } vdbe::StepResult::IO => { - return Ok(RowResult::IO); + Ok(RowResult::IO) } vdbe::StepResult::Done => { - return Ok(RowResult::Done); + Ok(RowResult::Done) } } }