mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-01 07:30:52 +08:00
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:
parent
b73ca079a8
commit
73323b6b92
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user