aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/naive_parser.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs
index c305343..93c37d7 100644
--- a/src/naive_parser.rs
+++ b/src/naive_parser.rs
@@ -61,7 +61,12 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> NaiveParser<R, O, E> {
}
}
-impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Iterator for NaiveParser<R, O, E> {
+impl<R, O, E> Iterator for NaiveParser<R, O, E>
+where
+ R: Reader + Position<O>,
+ O: Offset,
+ E: Emitter<O>,
+{
type Item = Result<E::Token, R::Error>;
fn next(&mut self) -> Option<Self::Item> {