aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index b282385..4dad1eb 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -183,7 +183,7 @@ impl Window {
}
// if one of the received events is `Closed`, setting `is_closed` to true
- if events.iter().find(|e| match e { &&::Closed => true, _ => false }).is_some() {
+ if events.iter().any(|e| match e { &::events::Event::Closed => true, _ => false }) {
use std::sync::atomic::Relaxed;
self.is_closed.store(true, Relaxed);
}
@@ -198,7 +198,7 @@ impl Window {
Ok(ev) => {
// if the received event is `Closed`, setting `is_closed` to true
match ev {
- ::Closed => {
+ ::events::Event::Closed => {
use std::sync::atomic::Relaxed;
self.is_closed.store(true, Relaxed);
},