Removed warnings

This commit is contained in:
Nicola Guerrera
2023-05-14 15:31:35 +02:00
parent 45c6399b63
commit e838a9f05f
3 changed files with 3 additions and 3 deletions

View File

@@ -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();
}
}

View File

@@ -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");

View File

@@ -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() {