From de964308d1130c6fea7b98275cf34bb034966343 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Thu, 4 Apr 2024 21:26:22 +0200 Subject: [PATCH] listen to the compiler --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e926561..c964f11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,8 +37,7 @@ impl App for DeathrollGame { ui.vertical_centered_justified(|ui| { ui.heading("Deathroll Game"); ui.label("Enter starting value and click the button to start the game."); - let number_input = ui.text_edit_singleline(&mut self.current_roll_input); - + ui.text_edit_singleline(&mut self.current_roll_input); self.current_roll = self.current_roll_input.parse::().unwrap_or_else(|_e| { -1 }); if self.current_roll <= 0 { ui.label("Invalid input. Please enter a valid number.");