Skip to content

Commit

Permalink
Fix compilation on older Rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Nov 16, 2024
1 parent 90f1081 commit 39e6458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parse/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"]")
}
};

Expand Down

0 comments on commit 39e6458

Please sign in to comment.