clippy fixes
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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.),
|
||||||
|
|||||||
Reference in New Issue
Block a user