clippy fixes

This commit is contained in:
2025-06-28 23:22:24 +02:00
parent 9aed0e9381
commit f6e94cfd32
2 changed files with 3 additions and 3 deletions

View File

@@ -70,11 +70,11 @@ fn on_spawn_sounds(
} }
} }
PlaySound::Head(name) => { PlaySound::Head(name) => {
let filename = format!("{}.ogg", name); let filename = format!("{name}.ogg");
assets assets
.head .head
.get(filename.as_str()) .get(filename.as_str())
.unwrap_or_else(|| panic!("invalid head '{}'", filename)) .unwrap_or_else(|| panic!("invalid head '{filename}'"))
.clone() .clone()
} }
}; };

View File

@@ -141,7 +141,7 @@ impl EnemySpawn {
world.commands().entity(entity).insert(( world.commands().entity(entity).insert((
this_transform, this_transform,
Name::from(format!("enemy [{}]", head)), Name::from(format!("enemy [{head}]")),
Visibility::default(), Visibility::default(),
RigidBody::Dynamic, RigidBody::Dynamic,
Collider::capsule(0.6, 2.), Collider::capsule(0.6, 2.),