summaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-29 18:04:57 +0100
committerMartin Fischer <martin@push-f.com>2021-11-30 11:22:35 +0100
commit8b6e4ba30354d466b56bf80f1bb58c371cfdf7c9 (patch)
tree8ba7c7bacb52b7e2c76438abc583535d4c4c692a /benches
parent78995cda172159bce38a9c846d2a57a22a00e375 (diff)
remove pointless associated type from TokenSink trait
Diffstat (limited to 'benches')
-rw-r--r--benches/html5ever.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/benches/html5ever.rs b/benches/html5ever.rs
index 8e4bbaf..b8c89c1 100644
--- a/benches/html5ever.rs
+++ b/benches/html5ever.rs
@@ -11,9 +11,7 @@ use html5tokenizer::{BufferQueue, Token, TokenSink, TokenSinkResult, Tokenizer};
struct Sink;
impl TokenSink for Sink {
- type Handle = ();
-
- fn process_token(&mut self, token: Token, _line_number: u64) -> TokenSinkResult<()> {
+ fn process_token(&mut self, token: Token, _line_number: u64) -> TokenSinkResult {
// Don't use the token, but make sure we don't get
// optimized out entirely.
black_box(token);