From 0e917837c0fc0ce0bade8601435b69b6fe3d86fd Mon Sep 17 00:00:00 2001 From: John Date: Mon, 23 Oct 2023 21:02:09 -0500 Subject: [PATCH] identify_tokens: Use `Display` on token Data --- libconlang/examples/identify_tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libconlang/examples/identify_tokens.rs b/libconlang/examples/identify_tokens.rs index 3c9c9d0..1fc4e65 100644 --- a/libconlang/examples/identify_tokens.rs +++ b/libconlang/examples/identify_tokens.rs @@ -59,7 +59,7 @@ fn lex_tokens(file: &str, path: Option<&Path>) -> Result<(), Box> { fn print_token(t: conlang::token::Token) { println!( - "{:02}:{:02}: {:#19} │{:?}│", + "{:02}:{:02}: {:#19} │{}│", t.line(), t.col(), t.ty(),