@@ -516,7 +516,7 @@ impl<'a> LabelText<'a> {
516
516
match * self {
517
517
LabelStr ( ref s) => format ! ( "\" {}\" " , s. escape_default( ) ) ,
518
518
EscStr ( ref s) => format ! ( "\" {}\" " , LabelText :: escape_str( s) ) ,
519
- HtmlStr ( ref s) => format ! ( "<{}>" , s ) ,
519
+ HtmlStr ( ref s) => format ! ( "<{s }>" ) ,
520
520
}
521
521
}
522
522
@@ -622,7 +622,7 @@ where
622
622
if let Some ( fontname) = options. iter ( ) . find_map ( |option| {
623
623
if let RenderOption :: Fontname ( fontname) = option { Some ( fontname) } else { None }
624
624
} ) {
625
- font = format ! ( r#"fontname="{}""# , fontname ) ;
625
+ font = format ! ( r#"fontname="{fontname }""# ) ;
626
626
graph_attrs. push ( & font[ ..] ) ;
627
627
content_attrs. push ( & font[ ..] ) ;
628
628
}
@@ -635,8 +635,8 @@ where
635
635
if !( graph_attrs. is_empty ( ) && content_attrs. is_empty ( ) ) {
636
636
writeln ! ( w, r#" graph[{}];"# , graph_attrs. join( " " ) ) ?;
637
637
let content_attrs_str = content_attrs. join ( " " ) ;
638
- writeln ! ( w, r#" node[{}];"# , content_attrs_str ) ?;
639
- writeln ! ( w, r#" edge[{}];"# , content_attrs_str ) ?;
638
+ writeln ! ( w, r#" node[{content_attrs_str }];"# ) ?;
639
+ writeln ! ( w, r#" edge[{content_attrs_str }];"# ) ?;
640
640
}
641
641
642
642
let mut text = Vec :: new ( ) ;
@@ -649,7 +649,7 @@ where
649
649
write ! ( text, "{}" , id. as_slice( ) ) . unwrap ( ) ;
650
650
651
651
if !options. contains ( & RenderOption :: NoNodeLabels ) {
652
- write ! ( text, "[label={}]" , escaped ) . unwrap ( ) ;
652
+ write ! ( text, "[label={escaped }]" ) . unwrap ( ) ;
653
653
}
654
654
655
655
let style = g. node_style ( n) ;
@@ -678,7 +678,7 @@ where
678
678
write ! ( text, "{} -> {}" , source_id. as_slice( ) , target_id. as_slice( ) ) . unwrap ( ) ;
679
679
680
680
if !options. contains ( & RenderOption :: NoEdgeLabels ) {
681
- write ! ( text, "[label={}]" , escaped_label ) . unwrap ( ) ;
681
+ write ! ( text, "[label={escaped_label }]" ) . unwrap ( ) ;
682
682
}
683
683
684
684
let style = g. edge_style ( e) ;
0 commit comments