From c3a01f5353013b82ec3048969f48e1f229a88c48 Mon Sep 17 00:00:00 2001 From: seancarroll Date: Sat, 9 Jan 2021 22:44:40 -0600 Subject: cargo fmt --- tests/dot.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/dot.rs b/tests/dot.rs index 1ab467d..efafac8 100644 --- a/tests/dot.rs +++ b/tests/dot.rs @@ -1,4 +1,7 @@ -use dotavious::attributes::{AttributeText, CompassPoint, GraphAttributeStatementBuilder, GraphAttributes, NodeStyle, PortPosition, RankDir, Shape, EdgeStyle, Color}; +use dotavious::attributes::{ + AttributeText, Color, CompassPoint, EdgeStyle, GraphAttributeStatementBuilder, + GraphAttributes, NodeStyle, PortPosition, RankDir, Shape, +}; use dotavious::{ Dot, Edge, EdgeAttributeStatementBuilder, EdgeAttributes, EdgeBuilder, Graph, GraphBuilder, Node, NodeAttributeStatementBuilder, NodeAttributes, NodeBuilder, @@ -7,7 +10,7 @@ use std::io; use std::io::Read; fn test_input(g: Graph) -> io::Result { - let mut writer= Vec::new(); + let mut writer = Vec::new(); let dot = Dot { graph: g }; dot.render(&mut writer).unwrap(); @@ -33,6 +36,7 @@ fn empty_digraph_without_id() { fn display() { let g = GraphBuilder::new_directed(None).build(); let dot = Dot { graph: g }; + assert_eq!( format!("{}", dot), r#"digraph { -- cgit v1.2.3