aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-27 17:10:50 +0200
committerMartin Fischer <martin@push-f.com>2023-09-27 17:13:01 +0200
commit67a812003a18cca016ff8b918610b4b6276ffd86 (patch)
tree6c9c69fbd6cb75c2cebc15c7c3eeea2a2961b3c8 /src
parent4b4a7ef0d14dae620230beac0a328bc250654446 (diff)
chore: move bounds to where clause
Diffstat (limited to 'src')
-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> {