about summary refs log tree commit diff
path: root/src/libnative/io/timer_unix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnative/io/timer_unix.rs')
-rw-r--r--src/libnative/io/timer_unix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnative/io/timer_unix.rs b/src/libnative/io/timer_unix.rs
index 06d48f2f886..06b78a54e53 100644
--- a/src/libnative/io/timer_unix.rs
+++ b/src/libnative/io/timer_unix.rs
@@ -119,7 +119,7 @@ fn helper(input: libc::c_int, messages: Receiver<Req>, _: ()) {
         let mut timer = match active.shift() {
             Some(timer) => timer, None => return
         };
-        let mut cb = timer.cb.take_unwrap();
+        let mut cb = timer.cb.take().unwrap();
         cb.call();
         if timer.repeat {
             timer.cb = Some(cb);