Reformat using the new identifier sorting from rustfmt

This commit is contained in:
Michael Goulet 2024-09-22 19:05:04 -04:00
parent 1173204b36
commit c682aa162b
1455 changed files with 7152 additions and 8384 deletions

View file

@ -4,7 +4,7 @@ use std::io::prelude::*;
use NodeLabels::*;
use super::LabelText::{self, EscStr, HtmlStr, LabelStr};
use super::{render, Edges, GraphWalk, Id, Labeller, Nodes, Style};
use super::{Edges, GraphWalk, Id, Labeller, Nodes, Style, render};
/// each node is an index in a vector in the graph.
type Node = usize;
@ -360,16 +360,12 @@ fn left_aligned_text() {
let mut writer = Vec::new();
let g = LabelledGraphWithEscStrs::new(
"syntax_tree",
labels,
vec![
edge(0, 1, "then", Style::None),
edge(0, 2, "else", Style::None),
edge(1, 3, ";", Style::None),
edge(2, 3, ";", Style::None),
],
);
let g = LabelledGraphWithEscStrs::new("syntax_tree", labels, vec![
edge(0, 1, "then", Style::None),
edge(0, 2, "else", Style::None),
edge(1, 3, ";", Style::None),
edge(2, 3, ";", Style::None),
]);
render(&g, &mut writer).unwrap();
let mut r = String::new();