From 0d3344d7b62deac7aebffe14e1518dbd7f047c95 Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Thu, 22 Feb 2024 19:48:04 +0100 Subject: [PATCH] Fix lints --- src/file_system_interaction/asset_loading.rs | 2 +- src/level_instantiation/spawning.rs | 36 +++++++++---------- .../character_controller/animations.rs | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/file_system_interaction/asset_loading.rs b/src/file_system_interaction/asset_loading.rs index b8251ae5..c3aea3d8 100644 --- a/src/file_system_interaction/asset_loading.rs +++ b/src/file_system_interaction/asset_loading.rs @@ -103,7 +103,7 @@ fn update_config( mut config_asset_events: EventReader>, ) -> Result<()> { #[cfg(feature = "tracing")] - let _span = info_span!("update_config").entered(); + let _span = info_span!("update_config").entered(); for event in config_asset_events.read() { match event { AssetEvent::Modified { id } | AssetEvent::LoadedWithDependencies { id } => { diff --git a/src/level_instantiation/spawning.rs b/src/level_instantiation/spawning.rs index b6c616bf..15a448bd 100644 --- a/src/level_instantiation/spawning.rs +++ b/src/level_instantiation/spawning.rs @@ -34,24 +34,24 @@ pub(crate) fn spawning_plugin(app: &mut App) { ..Default::default() }, )) - .register_type::() - .register_type::() - .register_type::() - .register_type::() - .register_type::() - .add_systems( - Update, - ( - ground::spawn, - camera::spawn, - orb::spawn, - player::spawn, - npc::spawn, - sunlight::spawn, - hide.after(PhysicsSet::Sync), - ) - .run_if(in_state(GameState::Playing)), - ); + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .add_systems( + Update, + ( + ground::spawn, + camera::spawn, + orb::spawn, + player::spawn, + npc::spawn, + sunlight::spawn, + hide.after(PhysicsSet::Sync), + ) + .run_if(in_state(GameState::Playing)), + ); } #[derive(Debug, Clone, Eq, PartialEq, Component, Reflect, Serialize, Deserialize, Default)] diff --git a/src/movement/character_controller/animations.rs b/src/movement/character_controller/animations.rs index 615052a4..675bb51a 100644 --- a/src/movement/character_controller/animations.rs +++ b/src/movement/character_controller/animations.rs @@ -20,7 +20,7 @@ pub(crate) fn play_animations( mut animation_players: Query<&mut AnimationPlayer>, ) -> anyhow::Result<()> { #[cfg(feature = "tracing")] - let _span = info_span!("play_animations").entered(); + let _span = info_span!("play_animations").entered(); for (mut animating_state, controller, animation_names, link, animations) in query.iter_mut() { let mut animation_player = animation_players.get_mut(link.0)?; match animating_state.update_by_discriminant({