mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 04:32:19 +08:00
clippy::single_match_else
This commit is contained in:
11
src/row.rs
11
src/row.rs
@@ -210,8 +210,8 @@ impl<'stmt> FallibleStreamingIterator for Rows<'stmt> {
|
||||
|
||||
#[inline]
|
||||
fn advance(&mut self) -> Result<()> {
|
||||
match self.stmt {
|
||||
Some(stmt) => match stmt.step() {
|
||||
if let Some(stmt) = self.stmt {
|
||||
match stmt.step() {
|
||||
Ok(true) => {
|
||||
self.row = Some(Row { stmt });
|
||||
Ok(())
|
||||
@@ -226,11 +226,10 @@ impl<'stmt> FallibleStreamingIterator for Rows<'stmt> {
|
||||
self.row = None;
|
||||
Err(e)
|
||||
}
|
||||
},
|
||||
None => {
|
||||
self.row = None;
|
||||
Ok(())
|
||||
}
|
||||
} else {
|
||||
self.row = None;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user