diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-30 11:40:27 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-30 11:40:27 +0200 |
| commit | 470f8001a1dba0022ec9d3e46c67c3bbc31359be (patch) | |
| tree | d68f60533201658148ea508c90ba704f806561d5 /src/pretty.rs | |
| parent | 45812b700114a51f0ee21e31f4454cde3729eaf5 (diff) | |
No more collisions between syntax::Tree and layout::Tree
Diffstat (limited to 'src/pretty.rs')
| -rw-r--r-- | src/pretty.rs | 8 |
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"); |
