identify_tokens: Use Display on token Data

This commit is contained in:
John 2023-10-23 21:02:09 -05:00
parent 8b1a1534f3
commit 0e917837c0

View File

@ -59,7 +59,7 @@ fn lex_tokens(file: &str, path: Option<&Path>) -> Result<(), Box<dyn Error>> {
fn print_token(t: conlang::token::Token) {
println!(
"{:02}:{:02}: {:#19} │{:?}│",
"{:02}:{:02}: {:#19} │{}│",
t.line(),
t.col(),
t.ty(),