about summary refs log tree commit diff
path: root/src/libsync/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsync/raw.rs')
-rw-r--r--src/libsync/raw.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsync/raw.rs b/src/libsync/raw.rs
index 98934d87474..245a7666a64 100644
--- a/src/libsync/raw.rs
+++ b/src/libsync/raw.rs
@@ -266,7 +266,7 @@ impl<'a> Condvar<'a> {
             // signaller already sent -- I mean 'unconditionally' in contrast
             // with acquire().)
             (|| {
-                let _ = wait_end.take_unwrap().recv();
+                let _ = wait_end.take().unwrap().recv();
             }).finally(|| {
                 // Reacquire the condvar.
                 match self.order {
@@ -325,7 +325,7 @@ impl<'a> Condvar<'a> {
                               condvar_id,
                               "cond.signal_on()",
                               || {
-                queue.take_unwrap().broadcast()
+                queue.take().unwrap().broadcast()
             })
         }
     }