From 4c5e430dd3fcd38c29bfbc20dc0cc65defd33224 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Sat, 3 Jan 2015 23:11:59 +0100 Subject: Update for Rustc --- src/win32/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/win32/mod.rs') diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 75706f6..78e2265 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -1,6 +1,7 @@ use std::sync::atomic::AtomicBool; use std::ptr; use std::collections::RingBuf; +use std::sync::mpsc::Receiver; use libc; use {CreationError, Event}; @@ -89,7 +90,7 @@ impl Window { } } -#[deriving(Clone)] +#[derive(Clone)] pub struct WindowProxy; impl WindowProxy { @@ -222,7 +223,7 @@ impl Window { /// See the docs in the crate root file. // TODO: return iterator pub fn wait_events(&self) -> RingBuf { - match self.events_receiver.recv_opt() { + match self.events_receiver.recv() { Ok(ev) => { // if the received event is `Closed`, setting `is_closed` to true match ev { -- cgit v1.2.3