Skip to content
Permalink
Browse files

Fix some build warnings

  • Loading branch information
metajack committed Sep 9, 2015
1 parent 0d37e8f commit 71c3c9a1ba95208f002e657c8a5dd42be2db2276
Showing with 4 additions and 1 deletion.
  1. +3 −0 components/style_traits/lib.rs
  2. +1 −1 ports/glutin/window.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;
@@ -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));

0 comments on commit 71c3c9a

Please sign in to comment.
You can’t perform that action at this time.