@@ -52,14 +52,6 @@ impl<'a, LABEL: Clone + Debug, DATA: Clone + RenderScopeData, CMPL: Completeness
52
52
Id :: new ( format ! ( "s{}" , n. 0 ) ) . unwrap ( )
53
53
}
54
54
55
- fn node_label ( & self , n : & Scope ) -> LabelText {
56
- let data = self . 0 . get_data ( * n) ;
57
- LabelText :: label ( data. render ( ) . unwrap_or_else ( || format ! ( "scope {}" , n. 0 ) ) )
58
- }
59
- fn edge_label ( & self , edge : & ( Scope , LABEL , Scope ) ) -> LabelText {
60
- LabelText :: label ( format ! ( "{:?}" , edge. 1 ) )
61
- }
62
-
63
55
fn node_shape ( & ' a self , node : & Scope ) -> Option < LabelText < ' a > > {
64
56
let data = self . 0 . get_data ( * node) ;
65
57
if data. definition ( ) {
@@ -68,6 +60,14 @@ impl<'a, LABEL: Clone + Debug, DATA: Clone + RenderScopeData, CMPL: Completeness
68
60
Some ( LabelStr ( Cow :: Borrowed ( "circle" ) ) )
69
61
}
70
62
}
63
+ fn node_label ( & self , n : & Scope ) -> LabelText {
64
+ let data = self . 0 . get_data ( * n) ;
65
+ LabelText :: label ( data. render ( ) . unwrap_or_else ( || format ! ( "scope {}" , n. 0 ) ) )
66
+ }
67
+
68
+ fn edge_label ( & self , edge : & ( Scope , LABEL , Scope ) ) -> LabelText {
69
+ LabelText :: label ( format ! ( "{:?}" , edge. 1 ) )
70
+ }
71
71
}
72
72
73
73
impl < ' a , LABEL : Clone , DATA : Clone , CMPL > dot:: GraphWalk < ' a , Scope , ( Scope , LABEL , Scope ) >
0 commit comments