aboutsummaryrefslogtreecommitdiff
path: root/examples/tokenize.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 10:56:59 +0100
committerMartin Fischer <martin@push-f.com>2021-11-30 11:22:35 +0100
commit915530c02029f8bd4444930ed949e14f09afab03 (patch)
tree6f58b9728386dc5c1709137bc0a250640a7ce572 /examples/tokenize.rs
parent414e5838618123cb00216a7426b898aab88ee45a (diff)
report spans for errors
Diffstat (limited to 'examples/tokenize.rs')
-rw-r--r--examples/tokenize.rs4
1 files changed, 2 insertions, 2 deletions
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);