From 71c3c9a1ba95208f002e657c8a5dd42be2db2276 Mon Sep 17 00:00:00 2001 From: Jack Moffitt Date: Wed, 9 Sep 2015 10:47:23 -0600 Subject: [PATCH] Fix some build warnings --- components/style_traits/lib.rs | 3 +++ ports/glutin/window.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style_traits/lib.rs b/components/style_traits/lib.rs index f47eac39bae..f1348fa79a7 100644 --- a/components/style_traits/lib.rs +++ b/components/style_traits/lib.rs @@ -11,8 +11,11 @@ #![feature(custom_derive)] #![feature(plugin)] #![plugin(serde_macros)] +#![plugin(plugins)] #![deny(unsafe_code)] + + extern crate euclid; extern crate rustc_serialize; extern crate serde; diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index fec6045b978..31bc358c488 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -724,7 +724,7 @@ impl Window { let headless_builder = glutin::HeadlessRendererBuilder::new(window_size.width, window_size.height); let headless_context = headless_builder.build().unwrap(); - unsafe { headless_context.make_current() }; + unsafe { headless_context.make_current().expect("Failed to make context current!") }; gl::load_with(|s| headless_context.get_proc_address(s));