Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/tests.rs')
| -rw-r--r-- | crates/parser/src/tests.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/parser/src/tests.rs b/crates/parser/src/tests.rs index caf1a3e83c..c1b4e9a7d8 100644 --- a/crates/parser/src/tests.rs +++ b/crates/parser/src/tests.rs @@ -93,14 +93,12 @@ fn parse(entry: TopEntryPoint, text: &str) -> (String, bool) { crate::StrStep::Token { kind, text } => { assert!(depth > 0); len += text.len(); - write!(buf, "{indent}").unwrap(); - write!(buf, "{kind:?} {text:?}\n").unwrap(); + writeln!(buf, "{indent}{kind:?} {text:?}").unwrap(); } crate::StrStep::Enter { kind } => { assert!(depth > 0 || len == 0); depth += 1; - write!(buf, "{indent}").unwrap(); - write!(buf, "{kind:?}\n").unwrap(); + writeln!(buf, "{indent}{kind:?}").unwrap(); indent.push_str(" "); } crate::StrStep::Exit => { |