From e838a9f05f403e3b9aa80f2f2c7590c8dafba46c Mon Sep 17 00:00:00 2001 From: Nicola Guerrera Date: Sun, 14 May 2023 15:31:35 +0200 Subject: [PATCH] Removed warnings --- examples/hexagon_launcher.rs | 2 +- examples/sirius.rs | 2 +- src/protostar.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/hexagon_launcher.rs b/examples/hexagon_launcher.rs index b833099..38c6ced 100644 --- a/examples/hexagon_launcher.rs +++ b/examples/hexagon_launcher.rs @@ -228,6 +228,6 @@ impl Button { impl RootHandler for Button { fn frame(&mut self, info: FrameInfo) { self.touch_plane.update(); - self.grabbable.update(&info); + self.grabbable.update(&info).unwrap(); } } diff --git a/examples/sirius.rs b/examples/sirius.rs index 7ba75df..ac36ec4 100644 --- a/examples/sirius.rs +++ b/examples/sirius.rs @@ -118,7 +118,7 @@ impl RootHandler for Sirius { app.frame(info); } - self.grabbable.update(&info); + self.grabbable.update(&info).unwrap(); self.touch_plane.update(); if self.touch_plane.touch_started() { println!("Touch started"); diff --git a/src/protostar.rs b/src/protostar.rs index bf6220a..0913cc7 100644 --- a/src/protostar.rs +++ b/src/protostar.rs @@ -187,7 +187,7 @@ impl ProtoStar { } impl RootHandler for ProtoStar { fn frame(&mut self, info: FrameInfo) { - self.grabbable.update(&info); + self.grabbable.update(&info).unwrap(); if let Some(grabbable_move) = &mut self.grabbable_move { if !grabbable_move.is_finished() {