summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pretty.rs')
-rw-r--r--src/pretty.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pretty.rs b/src/pretty.rs
index 216a6370..ccf4d88d 100644
--- a/src/pretty.rs
+++ b/src/pretty.rs
@@ -78,7 +78,7 @@ impl Write for Printer {
}
}
-impl Pretty for Tree {
+impl Pretty for SyntaxTree {
fn pretty(&self, p: &mut Printer) {
for node in self {
node.pretty(p);
@@ -630,10 +630,10 @@ mod tests {
#[track_caller]
fn test_parse(src: &str, exp: &str) {
- let tree = parse(src).output;
- let found = pretty(&tree);
+ let ast = parse(src).output;
+ let found = pretty(&ast);
if exp != found {
- println!("tree: {:#?}", tree);
+ println!("tree: {:#?}", ast);
println!("expected: {}", exp);
println!("found: {}", found);
panic!("test failed");