diff options
Diffstat (limited to 'examples/noop-tokenize.rs')
-rw-r--r-- | examples/noop-tokenize.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/noop-tokenize.rs b/examples/noop-tokenize.rs index 305727e..22a2192 100644 --- a/examples/noop-tokenize.rs +++ b/examples/noop-tokenize.rs @@ -20,9 +20,7 @@ use io::Read; struct Sink(Vec<Token>); 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. self.0.push(token); |