aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-28 08:25:09 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 11:00:01 +0200
commit8b2597814dee8486026326c2101820fa9f890e7b (patch)
treeb7a0a87cc7f1d3bc09f627eab089e7ddb6f0e7dd /src/tokenizer.rs
parentb027ecdb397c2e378491f847660f8eeb740e8cf6 (diff)
chore: remove unnecessary generic param bounds
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index 8a6e2fd..9c41645 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -119,7 +119,7 @@ impl From<State> for machine::State {
}
}
-impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
+impl<R, O, E> Tokenizer<R, O, E> {
/// Test-internal function to override internal state.
///
/// Only available with the `integration-tests` feature which is not public API.
@@ -167,7 +167,7 @@ where
}
}
-impl<R: Reader, O, E: Emitter<O>> Tokenizer<R, O, E> {
+impl<R, O, E> Tokenizer<R, O, E> {
pub(crate) fn enable_naive_state_switching(&mut self) {
self.machine.naively_switch_state = true;
}