aboutsummaryrefslogtreecommitdiff
path: root/src/machine.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/machine.rs
parent4d9cf7171836625b61dcfe675bdf9452766166c0 (diff)
chore: move type param bounds to where clause
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/machine.rs b/src/machine.rs
index e6f439b..c11720d 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -8,9 +8,11 @@ use crate::{reader::Reader, Emitter, Error, Tokenizer};
// Note: This is not implemented as a method on Tokenizer because there's fields on Tokenizer that
// should not be available in this method, such as Tokenizer.to_reconsume or the Reader instance
#[inline]
-pub fn consume<R: Reader, E: Emitter<R>>(
- slf: &mut Tokenizer<R, E>,
-) -> Result<ControlToken, R::Error> {
+pub fn consume<R, E>(slf: &mut Tokenizer<R, E>) -> Result<ControlToken, R::Error>
+where
+ R: Reader,
+ E: Emitter<R>,
+{
macro_rules! mutate_character_reference {
(* $mul:literal + $x:ident - $sub:literal) => {
match slf