From 4ce46a757950bc6f526706ce6db21b73d2a4d687 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Thu, 7 Dec 2023 17:44:34 +0000 Subject: [PATCH] refactor: fmt Former-commit-id: 40ebe7426e6b022b009f01d20c2ffbfa4cb72355 --- src/player.rs | 2 +- src/ui.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/player.rs b/src/player.rs index d7b52a5..8df4a97 100644 --- a/src/player.rs +++ b/src/player.rs @@ -61,7 +61,7 @@ pub fn movement( } else if keys.pressed(KeyCode::Down) { transform.rotation = Quat::from_rotation_z((180_f32).to_radians()); movement_factor = 1.; - } + } // Get the player's *forward* vector let movement_direction = transform.rotation * Vec3::Y; diff --git a/src/ui.rs b/src/ui.rs index 01c695e..02a3075 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -123,7 +123,8 @@ pub fn render_ui( // Show the stamina bar to be empty if the player has no stamina if player.stamina <= 0. { - stamina_bar = stamina_bar.fill(egui::Color32::from_rgba_unmultiplied(0, 0, 0, 0)); + stamina_bar = + stamina_bar.fill(egui::Color32::from_rgba_unmultiplied(0, 0, 0, 0)); }; // Show the progress bars!