about summary refs log tree commit diff
path: root/src/test/bench
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-11 11:14:14 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-15 23:22:15 -0700
commit2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f (patch)
treee4bebf36fa24fe0fe4dd6846291c59520ef1be28 /src/test/bench
parentd12a136b2247ab5cf5b32e44a890b3a871c0ce90 (diff)
downloadrust-2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f.tar.gz
rust-2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f.zip
core: Update all tests for fmt movement
Diffstat (limited to 'src/test/bench')
-rw-r--r--src/test/bench/shootout-chameneos-redux.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/bench/shootout-chameneos-redux.rs b/src/test/bench/shootout-chameneos-redux.rs
index 9db068e56c2..f0bc0204fd2 100644
--- a/src/test/bench/shootout-chameneos-redux.rs
+++ b/src/test/bench/shootout-chameneos-redux.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// no-pretty-expanded
+
 #![feature(phase)]
 #[phase(syntax)] extern crate green;
 
@@ -33,7 +35,7 @@ impl fmt::Show for Color {
             Yellow => "yellow",
             Blue => "blue",
         };
-        f.buf.write(str.as_bytes())
+        write!(f, "{}", str)
     }
 }
 
@@ -82,7 +84,7 @@ impl fmt::Show for Number {
         }
 
         for s in out.iter().rev() {
-            try!(f.buf.write(s.as_bytes()));
+            try!(write!(f, "{}", s))
         }
         Ok(())
     }