aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-17 15:36:38 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 11:41:55 +0200
commitd5c9a851756b1e84b022c2fbf984137aae68e2c9 (patch)
tree41763fb00dc21904b77c52c010969e52cc342fae /src/tokenizer.rs
parent4d9cf7171836625b61dcfe675bdf9452766166c0 (diff)
chore: move type param bounds to where clause
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index 141efb9..7eb33f7 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -270,7 +270,11 @@ impl<R: Reader, E: Emitter<R>> Tokenizer<R, E> {
}
}
-impl<R: Reader, E: Emitter<R>> Iterator for Tokenizer<R, E> {
+impl<R, E> Iterator for Tokenizer<R, E>
+where
+ R: Reader,
+ E: Emitter<R>,
+{
type Item = Result<E::Token, R::Error>;
fn next(&mut self) -> Option<Self::Item> {