@@ -183,23 +183,23 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc],
183
183
ret success;
184
184
185
185
fn write_ok ( out : & io:: writer , use_color : bool ) {
186
- write_pretty ( out, "ok" , term:: color_green, use_color) ;
186
+ write_pretty ( out, ~ "ok", term:: color_green, use_color) ;
187
187
}
188
188
189
189
fn write_failed ( out : & io:: writer , use_color : bool ) {
190
- write_pretty ( out, "FAILED" , term:: color_red, use_color) ;
190
+ write_pretty ( out, ~ "FAILED ", term:: color_red, use_color) ;
191
191
}
192
192
193
193
fn write_ignored ( out : & io:: writer , use_color : bool ) {
194
- write_pretty ( out, "ignored" , term:: color_yellow, use_color) ;
194
+ write_pretty ( out, ~ "ignored", term:: color_yellow, use_color) ;
195
195
}
196
196
197
- fn write_pretty ( out : & io:: writer , word : & str , color : u8 ,
197
+ fn write_pretty ( out : & io:: writer , word : & istr , color : u8 ,
198
198
use_color : bool ) {
199
199
if use_color && term:: color_supported ( ) {
200
200
term:: fg ( out. get_buf_writer ( ) , color) ;
201
201
}
202
- out. write_str ( istr :: from_estr ( word) ) ;
202
+ out. write_str ( word) ;
203
203
if use_color && term:: color_supported ( ) {
204
204
term:: reset ( out. get_buf_writer ( ) ) ;
205
205
}
0 commit comments