diff options
author | Wilfred Hughes <me@wilfred.me.uk> | 2024-11-15 22:08:15 -0800 |
---|---|---|
committer | Wilfred Hughes <me@wilfred.me.uk> | 2024-11-15 22:08:15 -0800 |
commit | 39e645832e1d78b4eda329a974e27652706e1745 (patch) | |
tree | 09870cdd0f72bc30787c97783a7778747f9bda1b | |
parent | 90f108105da8b41900a4fe4cfb68e44d817d9ca5 (diff) |
Fix compilation on older Rust versions
-rw-r--r-- | src/parse/syntax.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/syntax.rs b/src/parse/syntax.rs index 47676655c3..ebfc827728 100644 --- a/src/parse/syntax.rs +++ b/src/parse/syntax.rs @@ -384,14 +384,14 @@ fn print_as_dot_<'a>(nodes: &[&'a Syntax<'a>]) { .. } => { if open_content != "" { - &format!("[label=\"{open_content}{close_content}\"]") + format!("[label=\"{open_content}{close_content}\"]") } else { - &"[style=dotted]".to_owned() + "[style=dotted]".to_owned() } } Atom { content, .. } => { let content = content.replace("\"", "\\\""); - &format!("[label=\"{content}\"]") + format!("[label=\"{content}\"]") } }; |