From 276b8b125d3f60cebab702542b60207429fbb333 Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Mon, 18 Aug 2014 17:52:38 -0700 Subject: Fallout from stabilizing core::option --- src/libnative/io/timer_unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnative/io') 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, _: ()) { 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); -- cgit 1.4.1-3-g733a5