From 20b2ae049a009824ebbfe71a24a2f02849065fdb Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 14 Jul 2024 21:16:19 +0200 Subject: [PATCH] cleanup (cargo fmt) --- src/actor.rs | 3 ++- src/camera.rs | 3 +-- src/game.rs | 4 +--- src/var.rs | 5 +---- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index 2995490..e198fdc 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -491,7 +491,8 @@ pub fn handle_vehicle_enter_exit( commands.entity(driver).insert(collider.clone()); } if let Ok(mut flashlight_trans) = q_playerflashlight.get_single_mut() { - flashlight_trans.rotation = Quat::from_rotation_y(180f32.to_radians()); + flashlight_trans.rotation = + Quat::from_rotation_y(180f32.to_radians()); flashlight_trans.translation = Vec3::new(0.0, 0.0, 1.0); } commands.entity(driver).insert(RigidBody::Dynamic); diff --git a/src/camera.rs b/src/camera.rs index 443f20a..db2c5cf 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -36,8 +36,7 @@ impl Plugin for CameraPlugin { app.add_systems(Update, update_map_only_object_visibility.run_if(alive)); app.add_systems( PostUpdate, - manage_player_actor - .in_set(sync::SyncSet::PositionToTransform), + manage_player_actor.in_set(sync::SyncSet::PositionToTransform), ); app.add_systems( PostUpdate, diff --git a/src/game.rs b/src/game.rs index 5bda7cf..2de0cc9 100644 --- a/src/game.rs +++ b/src/game.rs @@ -507,9 +507,7 @@ fn handle_achievement_event( } AchievementEvent::InJupitersShadow => { if !tracker.in_jupiters_shadow { - ew_game.send(GameEvent::Achievement( - "Enter Jupiter's Shadow".into(), - )); + ew_game.send(GameEvent::Achievement("Enter Jupiter's Shadow".into())); } tracker.in_jupiters_shadow = true; } diff --git a/src/var.rs b/src/var.rs index ec76843..f9c3578 100644 --- a/src/var.rs +++ b/src/var.rs @@ -415,10 +415,7 @@ impl AchievementTracker { (self.ride_every_vehicle, "ride every vehicle".into()), (self.talk_to_everyone, "talk to everyone".into()), (self.find_earth, "find Earth".into()), - ( - self.in_jupiters_shadow, - "enter Jupiter's shadow".into(), - ), + (self.in_jupiters_shadow, "enter Jupiter's shadow".into()), ] } pub fn to_summary(&self) -> String {