aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-01-03 23:23:40 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-01-03 23:23:40 +0100
commit0937d809b58472f815fd97598f379bbd13937e7f (patch)
tree438ed8c0ce41fa513e92a4dd0696bf4114df38fa /src/win32/mod.rs
parentebe32bb2d803bc22c4b309acbbd48f3dc2a12127 (diff)
parent4c5e430dd3fcd38c29bfbc20dc0cc65defd33224 (diff)
downloadglutin-0937d809b58472f815fd97598f379bbd13937e7f.tar.gz
glutin-0937d809b58472f815fd97598f379bbd13937e7f.zip
Merge pull request #181 from tomaka/update-rustc
Update for Rustc
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs5
1 files changed, 3 insertions, 2 deletions
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<Event> {
- 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 {