aboutsummaryrefslogtreecommitdiff
path: root/src/naive_parser.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-27 17:19:27 +0200
committerMartin Fischer <martin@push-f.com>2023-09-27 17:19:27 +0200
commit518edf281f93cceb9793224f700a8f3d63d78ea2 (patch)
treec6c0adfe88da9f329ac9c80f8c1e97607c749742 /src/naive_parser.rs
parent67a812003a18cca016ff8b918610b4b6276ffd86 (diff)
break!: remove Emitter::pop_token, use Iterator instead
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r--src/naive_parser.rs4
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 {