From 915530c02029f8bd4444930ed949e14f09afab03 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 30 Nov 2021 10:56:59 +0100 Subject: report spans for errors --- examples/tokenize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/tokenize.rs b/examples/tokenize.rs index 8728a18..1c9ea6a 100644 --- a/examples/tokenize.rs +++ b/examples/tokenize.rs @@ -66,9 +66,9 @@ impl TokenSink for TokenPrinter { } println!(">"); } - ParseError(err) => { + ParseError { error, .. } => { self.is_char(false); - println!("ERROR: {}", err); + println!("ERROR: {}", error); } _ => { self.is_char(false); -- cgit v1.2.3