From 3a4ce6344ebe62b933260309a76bc62d131e4f31 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 14 Mar 2026 23:51:49 +0100 Subject: [PATCH] tasks: ui: simplify matches --- src/tasks/ui.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tasks/ui.rs b/src/tasks/ui.rs index 05af8b6..8c94698 100644 --- a/src/tasks/ui.rs +++ b/src/tasks/ui.rs @@ -128,12 +128,9 @@ impl match personality { - Personality::Active => self.apply_scene(Scene::Ready).await, - Personality::Parked => self.apply_scene(Scene::Idle).await, - Personality::Waking => self.show().await, - _ => () - }, + Prediction::SetPersonality(Personality::Active) => self.apply_scene(Scene::Ready).await, + Prediction::SetPersonality(Personality::Parked) => self.apply_scene(Scene::Idle).await, + Prediction::SetPersonality(Personality::Waking) => self.show().await, Prediction::Motion { prev: _, next: MotionState::Accelerating } => self.apply_scene(Scene::Accelerating).await, Prediction::Motion { prev: _, next: MotionState::Decelerating } => self.apply_scene(Scene::Decelerating).await, Prediction::Motion { prev: _, next: MotionState::Steady } => self.apply_scene(Scene::Ready).await,