mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 12:42:18 +08:00
Fix clippy warnings
This commit is contained in:
@@ -156,7 +156,7 @@ where
|
||||
self.rows
|
||||
.next()
|
||||
.transpose()
|
||||
.map(|row_result| row_result.and_then(|row| (map)(&row)))
|
||||
.map(|row_result| row_result.and_then(|row| (map)(row)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ where
|
||||
self.rows
|
||||
.next()
|
||||
.transpose()
|
||||
.map(|row_result| row_result.map_err(E::from).and_then(|row| (map)(&row)))
|
||||
.map(|row_result| row_result.map_err(E::from).and_then(|row| (map)(row)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ impl<'stmt> FallibleStreamingIterator for Rows<'stmt> {
|
||||
#[inline]
|
||||
fn advance(&mut self) -> Result<()> {
|
||||
match self.stmt {
|
||||
Some(ref stmt) => match stmt.step() {
|
||||
Some(stmt) => match stmt.step() {
|
||||
Ok(true) => {
|
||||
self.row = Some(Row { stmt });
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user