From ea9055e46c9fb04f88e9df35702bb48962f7c5ff Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sat, 30 Aug 2025 09:24:38 -0500 Subject: [PATCH] (autoformat) --- src/game/mod.rs | 2 +- src/main.rs | 4 +--- src/widgets/fuel_gauge.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/game/mod.rs b/src/game/mod.rs index f497d57..8687bf2 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -43,7 +43,7 @@ pub mod consumables { impl Default for Fuel { fn default() -> Self { - Self(5) + Self(5) } } #[derive(Event)] diff --git a/src/main.rs b/src/main.rs index 22b4433..cb97048 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,9 +2,7 @@ use bevy::{color::palettes::css::*, prelude::*, window::WindowResolution}; use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin}; use crate::{ - game::{ - machines::{CuttingMachine, FlippingMachine, RotatingMachine, TransposingMachine}, - }, + game::machines::{CuttingMachine, FlippingMachine, RotatingMachine, TransposingMachine}, resources::UiTheme, widgets::SpawnUi, }; diff --git a/src/widgets/fuel_gauge.rs b/src/widgets/fuel_gauge.rs index ef73c8b..7d8839f 100644 --- a/src/widgets/fuel_gauge.rs +++ b/src/widgets/fuel_gauge.rs @@ -63,7 +63,7 @@ impl FuelGauge { let Some(mut label) = world.get_mut::(ctx.entity) else { panic!() }; - + label.0 = format!("Fuel: {}", fuel); } }