From 19a8f24e8b5e79368940b51b1df2c6309654389c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 13 Feb 2015 10:37:00 +0100 Subject: [PATCH] Fix warnings in glutin. --- ports/glutin/lib.rs | 7 +++++-- ports/glutin/window.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ports/glutin/lib.rs b/ports/glutin/lib.rs index 824b151bb8b..4ac0a2c18aa 100644 --- a/ports/glutin/lib.rs +++ b/ports/glutin/lib.rs @@ -4,8 +4,11 @@ //! A simple application that uses glutin to open a window for Servo to display in. -#![feature(box_syntax, int_uint)] -#![allow(unstable)] +#![feature(int_uint)] +#![feature(core)] +#![feature(hash)] +#![feature(box_syntax)] +#![feature(libc)] #[macro_use] extern crate bitflags; #[cfg(target_os="macos")] diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index c7707108b48..8fe2f02599b 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -47,7 +47,7 @@ static mut g_nested_event_loop_listener: Option<*mut (NestedEventLoopListener + #[cfg(feature = "window")] bitflags! { - #[derive(Show)] + #[derive(Debug)] flags KeyModifiers: u8 { const LEFT_CONTROL = 1, const RIGHT_CONTROL = 2,