From c13a62593c218243b4d3b0e8be0b903c0315571b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 23 Jan 2014 09:53:05 -0800 Subject: Flag Result as #[must_use] and deal with fallout. --- src/libnative/io/timer_timerfd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libnative/io/timer_timerfd.rs') diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs index 2bcaf4d5c7c..1888b8578a0 100644 --- a/src/libnative/io/timer_timerfd.rs +++ b/src/libnative/io/timer_timerfd.rs @@ -98,7 +98,7 @@ fn helper(input: libc::c_int, messages: Port) { if fd == input { let mut buf = [0, ..1]; // drain the input file descriptor of its input - FileDesc::new(fd, false).inner_read(buf); + FileDesc::new(fd, false).inner_read(buf).unwrap(); incoming = true; } else { let mut bits = [0, ..8]; @@ -106,7 +106,7 @@ fn helper(input: libc::c_int, messages: Port) { // // FIXME: should this perform a send() this number of // times? - FileDesc::new(fd, false).inner_read(bits); + FileDesc::new(fd, false).inner_read(bits).unwrap(); let remove = { match map.find(&fd).expect("fd unregistered") { &(ref c, oneshot) => !c.try_send(()) || oneshot -- cgit 1.4.1-3-g733a5