@@ -106,7 +106,7 @@ macro_rules! impl_text {
106106 let txt = & format!( "{}" , self ) ;
107107 let vger = & mut args. vger;
108108 let origin = vger. text_bounds( txt, Text :: DEFAULT_SIZE , None ) . origin;
109-
109+
110110 vger. save( ) ;
111111 vger. translate( [ -origin. x, -origin. y] ) ;
112112 vger. text( txt, Text :: DEFAULT_SIZE , TEXT_COLOR , None ) ;
@@ -116,7 +116,7 @@ macro_rules! impl_text {
116116 let txt = & format!( "{}" , self ) ;
117117 ( args. text_bounds) ( txt, Text :: DEFAULT_SIZE , None ) . size
118118 }
119-
119+
120120 fn access(
121121 & self ,
122122 path: & mut IdPath ,
@@ -131,8 +131,7 @@ macro_rules! impl_text {
131131 }
132132 }
133133
134- impl TextModifiers for $ty
135- {
134+ impl TextModifiers for $ty {
136135 fn font_size( self , size: u32 ) -> Text {
137136 Text {
138137 text: format!( "{}" , self ) ,
@@ -159,8 +158,7 @@ macro_rules! impl_text {
159158 }
160159 }
161160 }
162-
163- }
161+ } ;
164162}
165163
166164// XXX: this used to be generic for any Display but
@@ -205,8 +203,7 @@ impl DynView for &'static str {
205203 }
206204}
207205
208- impl TextModifiers for & ' static str
209- {
206+ impl TextModifiers for & ' static str {
210207 fn font_size ( self , size : u32 ) -> Text {
211208 Text {
212209 text : format ! ( "{}" , self ) ,
0 commit comments