about summary refs log tree commit diff
path: root/src/libstd/to_str.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/to_str.rs')
-rw-r--r--src/libstd/to_str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/to_str.rs b/src/libstd/to_str.rs
index ff701267189..554b9a85100 100644
--- a/src/libstd/to_str.rs
+++ b/src/libstd/to_str.rs
@@ -45,7 +45,7 @@ impl<A:ToStr> ToStr for (A,) {
     fn to_str(&self) -> ~str {
         match *self {
             (ref a,) => {
-                fmt!("(%s,)", (*a).to_str())
+                format!("({},)", (*a).to_str())
             }
         }
     }
@@ -98,7 +98,7 @@ impl<A:ToStr,B:ToStr> ToStr for (A, B) {
         //let &(ref a, ref b) = self;
         match *self {
             (ref a, ref b) => {
-                fmt!("(%s, %s)", (*a).to_str(), (*b).to_str())
+                format!("({}, {})", (*a).to_str(), (*b).to_str())
             }
         }
     }
@@ -111,7 +111,7 @@ impl<A:ToStr,B:ToStr,C:ToStr> ToStr for (A, B, C) {
         //let &(ref a, ref b, ref c) = self;
         match *self {
             (ref a, ref b, ref c) => {
-                fmt!("(%s, %s, %s)",
+                format!("({}, {}, {})",
                     (*a).to_str(),
                     (*b).to_str(),
                     (*c).to_str()
@@ -221,7 +221,7 @@ mod tests {
 
     impl ToStr for StructWithToStrWithoutEqOrHash {
         fn to_str(&self) -> ~str {
-            fmt!("s%d", self.value)
+            format!("s{}", self.value)
         }
     }