diff options
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r-- | src/naive_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs index 93c37d7..10eb98d 100644 --- a/src/naive_parser.rs +++ b/src/naive_parser.rs @@ -65,9 +65,9 @@ impl<R, O, E> Iterator for NaiveParser<R, O, E> where R: Reader + Position<O>, O: Offset, - E: Emitter<O>, + E: Emitter<O> + Iterator, { - type Item = Result<E::Token, R::Error>; + type Item = Result<E::Item, R::Error>; fn next(&mut self) -> Option<Self::Item> { loop { |