From c2704bebc1773ca455c62b045c7595db3399ccb2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 4 Jul 2021 11:20:31 +0300 Subject: [PATCH] minor: better error message --- crates/syntax/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/syntax/src/tests.rs b/crates/syntax/src/tests.rs index b4bc6beead..29b91379ff 100644 --- a/crates/syntax/src/tests.rs +++ b/crates/syntax/src/tests.rs @@ -183,7 +183,7 @@ fn self_hosting_parsing() { if !errors.is_empty() { let errors = errors .into_iter() - .map(|(path, err)| format!("{}: {:?}\n", path.display(), err)) + .map(|(path, err)| format!("{}: {:?}\n", path.display(), err[0])) .collect::(); panic!("Parsing errors:\n{}\n", errors); }