From 91a66b4b4a74c192485196b7a78399a23205ea3e Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Sat, 5 Dec 2020 18:55:27 -0500 Subject: [PATCH] Fix player warnings --- player/src/bin/play.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player/src/bin/play.rs b/player/src/bin/play.rs index 522d7e64b..c245e964f 100644 --- a/player/src/bin/play.rs +++ b/player/src/bin/play.rs @@ -139,12 +139,12 @@ fn main() { desc.width, desc.height, )); - gfx_select!(device => global.device_create_swap_chain(device, surface, &desc)); + gfx_select!(device => global.device_create_swap_chain(device, surface, &desc)).unwrap(); } Some(trace::Action::PresentSwapChain(id)) => { frame_count += 1; log::debug!("Presenting frame {}", frame_count); - gfx_select!(device => global.swap_chain_present(id)); + gfx_select!(device => global.swap_chain_present(id)).unwrap(); break; } Some(action) => { @@ -170,7 +170,7 @@ fn main() { }, Event::LoopDestroyed => { log::info!("Closing"); - gfx_select!(device => global.device_poll(device, true)); + gfx_select!(device => global.device_poll(device, true)).unwrap(); } _ => {} }