Remove Iterator implementation for Batch

If Batch implements both `Iterator` and `FaillibleIterator`, `next`
method is ambiguous and must be qualified...
This commit is contained in:
gwenn 2020-10-29 20:06:47 +01:00
parent b73ca079a8
commit 73323b6b92

View File

@ -865,14 +865,6 @@ impl<'conn> fallible_iterator::FallibleIterator for Batch<'conn, '_> {
} }
} }
impl<'conn> Iterator for Batch<'conn, '_> {
type Item = Result<Statement<'conn>, Error>;
fn next(&mut self) -> Option<Self::Item> {
fallible_iterator::FallibleIterator::next(self).transpose()
}
}
bitflags::bitflags! { bitflags::bitflags! {
/// Flags for opening SQLite database connections. /// Flags for opening SQLite database connections.
/// See [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details. /// See [sqlite3_open_v2](http://www.sqlite.org/c3ref/open.html) for details.