From 8b6e4ba30354d466b56bf80f1bb58c371cfdf7c9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 29 Nov 2021 18:04:57 +0100 Subject: remove pointless associated type from TokenSink trait --- benches/html5ever.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'benches') 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); -- cgit v1.2.3