Skip to content

Commit ee02f68

Browse files
committed
Manual fixups for libgraphviz
(Actually mostly not manual, comes from fixing rustfmt, but some are manual).
1 parent 4f13368 commit ee02f68

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/libgraphviz/lib.rs

+12-8
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ pub fn default_options() -> Vec<RenderOption> {
539539

540540
/// Renders directed graph `g` into the writer `w` in DOT syntax.
541541
/// (Simple wrapper around `render_opts` that passes a default set of options.)
542-
pub fn render<'a, N: Clone, 'a, E: Clone, 'a, G: Labeller<'a, N, E>, GraphWalk<'a, N, E>, W: Write>
542+
pub fn render<'a, N: Clone+'a, E: Clone+'a, G: Labeller<'a, N, E>+GraphWalk<'a, N, E>, W: Write>
543543
(g: &'a G,
544544
w: &mut W)
545545
-> io::Result<()> {
@@ -549,9 +549,9 @@ pub fn render<'a, N: Clone, 'a, E: Clone, 'a, G: Labeller<'a, N, E>, GraphWalk<'
549549
/// Renders directed graph `g` into the writer `w` in DOT syntax.
550550
/// (Main entry point for the library.)
551551
pub fn render_opts<'a,
552-
N: Clone, 'a,
553-
E: Clone, 'a,
554-
G: Labeller<'a, N, E>, GraphWalk<'a, N, E>,
552+
N: Clone+'a,
553+
E: Clone+'a,
554+
G: Labeller<'a, N, E>+GraphWalk<'a, N, E>,
555555
W: Write>
556556
(g: &'a G,
557557
w: &mut W,
@@ -835,8 +835,10 @@ r#"digraph single_cyclic_node {
835835
let labels = AllNodesLabelled(vec!("{x,y}", "{x}", "{y}", "{}"));
836836
let r = test_input(LabelledGraph::new("hasse_diagram",
837837
labels,
838-
vec!(edge(0, 1, ""), edge(0, 2, ""),
839-
edge(1, 3, ""), edge(2, 3, ""))));
838+
vec!(edge(0, 1, ""),
839+
edge(0, 2, ""),
840+
edge(1, 3, ""),
841+
edge(2, 3, ""))));
840842
assert_eq!(r.unwrap(),
841843
r#"digraph hasse_diagram {
842844
N0[label="{x,y}"];
@@ -869,8 +871,10 @@ r#"digraph hasse_diagram {
869871

870872
let g = LabelledGraphWithEscStrs::new("syntax_tree",
871873
labels,
872-
vec!(edge(0, 1, "then"), edge(0, 2, "else"),
873-
edge(1, 3, ";"), edge(2, 3, ";" )));
874+
vec!(edge(0, 1, "then"),
875+
edge(0, 2, "else"),
876+
edge(1, 3, ";"),
877+
edge(2, 3, ";" )));
874878

875879
render(&g, &mut writer).unwrap();
876880
let mut r = String::new();

0 commit comments

Comments
 (0)