Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Feb 22, 2024
1 parent e188587 commit 0d3344d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/file_system_interaction/asset_loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn update_config(
mut config_asset_events: EventReader<AssetEvent<GameConfig>>,
) -> 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 } => {
Expand Down
36 changes: 18 additions & 18 deletions src/level_instantiation/spawning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ pub(crate) fn spawning_plugin(app: &mut App) {
..Default::default()
},
))
.register_type::<camera::IngameCameraMarker>()
.register_type::<orb::Orb>()
.register_type::<sunlight::Sun>()
.register_type::<Hidden>()
.register_type::<ground::Grass>()
.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::<camera::IngameCameraMarker>()
.register_type::<orb::Orb>()
.register_type::<sunlight::Sun>()
.register_type::<Hidden>()
.register_type::<ground::Grass>()
.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)]
Expand Down
2 changes: 1 addition & 1 deletion src/movement/character_controller/animations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0d3344d

Please sign in to comment.