From f2a1a8076f21d25f43ac3e37300c580dea2e37cb Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Mon, 5 Jan 2015 11:15:24 -0500 Subject: [PATCH] Use associated type for Iterator --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9fa66ce..76fa645 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,6 +50,7 @@ #![feature(globs)] #![feature(unsafe_destructor)] #![feature(macro_rules)] +#![feature(associated_types)] extern crate libc; @@ -564,7 +565,9 @@ impl<'stmt> SqliteRows<'stmt> { } } -impl<'stmt> Iterator>> for SqliteRows<'stmt> { +impl<'stmt> Iterator for SqliteRows<'stmt> { + type Item = SqliteResult>; + fn next(&mut self) -> Option>> { if self.failed { return None;