clippy fixes
This commit is contained in:
@@ -70,11 +70,11 @@ fn on_spawn_sounds(
|
||||
}
|
||||
}
|
||||
PlaySound::Head(name) => {
|
||||
let filename = format!("{}.ogg", name);
|
||||
let filename = format!("{name}.ogg");
|
||||
assets
|
||||
.head
|
||||
.get(filename.as_str())
|
||||
.unwrap_or_else(|| panic!("invalid head '{}'", filename))
|
||||
.unwrap_or_else(|| panic!("invalid head '{filename}'"))
|
||||
.clone()
|
||||
}
|
||||
};
|
||||
|
||||
@@ -141,7 +141,7 @@ impl EnemySpawn {
|
||||
|
||||
world.commands().entity(entity).insert((
|
||||
this_transform,
|
||||
Name::from(format!("enemy [{}]", head)),
|
||||
Name::from(format!("enemy [{head}]")),
|
||||
Visibility::default(),
|
||||
RigidBody::Dynamic,
|
||||
Collider::capsule(0.6, 2.),
|
||||
|
||||
Reference in New Issue
Block a user