diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-31 23:46:44 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-01 12:14:36 -0700 |
| commit | 91ea2577cdea160f13b617546a00b39518be35e9 (patch) | |
| tree | 3a31f5e0ad9af2307c768f4c36bd81cfd37fa200 /src/lib | |
| parent | 792436826892d61ca16797fe3d26b1f202f6702a (diff) | |
Remove a few more istr conversions. Issue #855
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/test.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/test.rs b/src/lib/test.rs index 10ee548f0ee..85b2accdb9e 100644 --- a/src/lib/test.rs +++ b/src/lib/test.rs @@ -183,23 +183,23 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc], ret success; fn write_ok(out: &io::writer, use_color: bool) { - write_pretty(out, "ok", term::color_green, use_color); + write_pretty(out, ~"ok", term::color_green, use_color); } fn write_failed(out: &io::writer, use_color: bool) { - write_pretty(out, "FAILED", term::color_red, use_color); + write_pretty(out, ~"FAILED", term::color_red, use_color); } fn write_ignored(out: &io::writer, use_color: bool) { - write_pretty(out, "ignored", term::color_yellow, use_color); + write_pretty(out, ~"ignored", term::color_yellow, use_color); } - fn write_pretty(out: &io::writer, word: &str, color: u8, + fn write_pretty(out: &io::writer, word: &istr, color: u8, use_color: bool) { if use_color && term::color_supported() { term::fg(out.get_buf_writer(), color); } - out.write_str(istr::from_estr(word)); + out.write_str(word); if use_color && term::color_supported() { term::reset(out.get_buf_writer()); } |
