Fix clippy warnings

This commit is contained in:
gwenn
2021-06-16 19:22:31 +02:00
committed by Thom Chiovoloni
parent 781d5b9fdd
commit 5730b2f952
7 changed files with 13 additions and 10 deletions

View File

@@ -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(())