Skip to content

Commit

Permalink
Fix some build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
metajack committed Sep 9, 2015
1 parent 0d37e8f commit 71c3c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/style_traits/lib.rs
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ports/glutin/window.rs
Expand Up @@ -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));

Expand Down

0 comments on commit 71c3c9a

Please sign in to comment.