about summary refs log tree commit diff
path: root/src/libstd/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sync.rs')
-rw-r--r--src/libstd/sync.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs
index 108f24d60dc..023fc18cdc1 100644
--- a/src/libstd/sync.rs
+++ b/src/libstd/sync.rs
@@ -329,11 +329,11 @@ fn check_cvar_bounds<U>(out_of_bounds: Option<uint>, id: uint, act: &str,
                         blk: &fn() -> U) -> U {
     match out_of_bounds {
         Some(0) =>
-            fail!(fmt!("%s with illegal ID %u - this lock has no condvars!",
-                      act, id)),
+            fail!("%s with illegal ID %u - this lock has no condvars!",
+                      act, id),
         Some(length) =>
-            fail!(fmt!("%s with illegal ID %u - ID must be less than %u",
-                      act, id, length)),
+            fail!("%s with illegal ID %u - ID must be less than %u",
+                      act, id, length),
         None => blk()
     }
 }
@@ -578,7 +578,7 @@ pub impl RWlock {
                      token: RWlockWriteMode<'a>)
                   -> RWlockReadMode<'a> {
         if !ptr::ref_eq(self, token.lock) {
-            fail!(~"Can't downgrade() with a different rwlock's write_mode!");
+            fail!("Can't downgrade() with a different rwlock's write_mode!");
         }
         unsafe {
             do task::unkillable {