diff options
author | mitchmindtree <mitchell.nordine@gmail.com> | 2015-11-08 21:14:58 +1100 |
---|---|---|
committer | mitchmindtree <mitchell.nordine@gmail.com> | 2015-11-08 21:14:58 +1100 |
commit | 947effd3a0c250f2aee72bbfdbfa26b13ae09067 (patch) | |
tree | 466c4fd12bba70b78b86d458583cf1349f64e550 /examples | |
parent | 228732877a6c64f2d923d04bd6ed4c771289ecdf (diff) | |
download | glutin-947effd3a0c250f2aee72bbfdbfa26b13ae09067.tar.gz glutin-947effd3a0c250f2aee72bbfdbfa26b13ae09067.zip |
unwrap to fix unused result warning
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cursor.rs | 4 |
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(); } } |