From 7b84121500cd74310cb554151ab0aac6d6d9a714 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 2 Dec 2014 20:44:38 +0100 Subject: Fix deprecation warning on X11 --- src/x11/window/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/x11') diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 72c7133..e94b5c9 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -370,10 +370,10 @@ impl Window { let mut events = Vec::new(); loop { - use std::num::Bounded; + use std::num::Int; let mut xev = unsafe { mem::uninitialized() }; - let res = unsafe { ffi::XCheckMaskEvent(self.display, Bounded::max_value(), &mut xev) }; + let res = unsafe { ffi::XCheckMaskEvent(self.display, Int::max_value(), &mut xev) }; if res == 0 { let res = unsafe { ffi::XCheckTypedEvent(self.display, ffi::ClientMessage, &mut xev) }; -- cgit v1.2.3