summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2024-11-15 22:08:15 -0800
committerWilfred Hughes <me@wilfred.me.uk>2024-11-15 22:08:15 -0800
commit39e645832e1d78b4eda329a974e27652706e1745 (patch)
tree09870cdd0f72bc30787c97783a7778747f9bda1b
parent90f108105da8b41900a4fe4cfb68e44d817d9ca5 (diff)
Fix compilation on older Rust versions
-rw-r--r--src/parse/syntax.rs6
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}\"]")
}
};