mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Use associated type for Iterator
This commit is contained in:
parent
a52fedad36
commit
f2a1a8076f
@ -50,6 +50,7 @@
|
|||||||
#![feature(globs)]
|
#![feature(globs)]
|
||||||
#![feature(unsafe_destructor)]
|
#![feature(unsafe_destructor)]
|
||||||
#![feature(macro_rules)]
|
#![feature(macro_rules)]
|
||||||
|
#![feature(associated_types)]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
@ -564,7 +565,9 @@ impl<'stmt> SqliteRows<'stmt> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'stmt> Iterator<SqliteResult<SqliteRow<'stmt>>> for SqliteRows<'stmt> {
|
impl<'stmt> Iterator for SqliteRows<'stmt> {
|
||||||
|
type Item = SqliteResult<SqliteRow<'stmt>>;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<SqliteResult<SqliteRow<'stmt>>> {
|
fn next(&mut self) -> Option<SqliteResult<SqliteRow<'stmt>>> {
|
||||||
if self.failed {
|
if self.failed {
|
||||||
return None;
|
return None;
|
||||||
|
Loading…
Reference in New Issue
Block a user