aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormitchmindtree <mitchell.nordine@gmail.com>2015-11-08 21:14:58 +1100
committermitchmindtree <mitchell.nordine@gmail.com>2015-11-08 21:14:58 +1100
commit947effd3a0c250f2aee72bbfdbfa26b13ae09067 (patch)
tree466c4fd12bba70b78b86d458583cf1349f64e550
parent228732877a6c64f2d923d04bd6ed4c771289ecdf (diff)
downloadglutin-947effd3a0c250f2aee72bbfdbfa26b13ae09067.tar.gz
glutin-947effd3a0c250f2aee72bbfdbfa26b13ae09067.zip
unwrap to fix unused result warning
-rw-r--r--examples/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cursor.rs b/examples/cursor.rs
index cbe6978..167c5cb 100644
--- a/examples/cursor.rs
+++ b/examples/cursor.rs
@@ -14,7 +14,7 @@ android_start!(main);
fn main() {
let window = glutin::WindowBuilder::new().build().unwrap();
window.set_title("A fantastic window!");
- unsafe { window.make_current() };
+ unsafe { window.make_current().unwrap() };
let context = support::load(&window);
let cursors = [MouseCursor::Default, MouseCursor::Crosshair, MouseCursor::Hand, MouseCursor::Arrow, MouseCursor::Move, MouseCursor::Text, MouseCursor::Wait, MouseCursor::Help, MouseCursor::Progress, MouseCursor::NotAllowed, MouseCursor::ContextMenu, MouseCursor::NoneCursor, MouseCursor::Cell, MouseCursor::VerticalText, MouseCursor::Alias, MouseCursor::Copy, MouseCursor::NoDrop, MouseCursor::Grab, MouseCursor::Grabbing, MouseCursor::AllScroll, MouseCursor::ZoomIn, MouseCursor::ZoomOut, MouseCursor::EResize, MouseCursor::NResize, MouseCursor::NeResize, MouseCursor::NwResize, MouseCursor::SResize, MouseCursor::SeResize, MouseCursor::SwResize, MouseCursor::WResize, MouseCursor::EwResize, MouseCursor::NsResize, MouseCursor::NeswResize, MouseCursor::NwseResize, MouseCursor::ColResize, MouseCursor::RowResize];
@@ -36,6 +36,6 @@ fn main() {
}
context.draw_frame((0.0, 1.0, 0.0, 1.0));
- window.swap_buffers();
+ window.swap_buffers().unwrap();
}
}