fix: lint warnings

This commit is contained in:
Kristofers Solo 2024-12-11 18:01:22 +02:00
parent b89556679c
commit 995cc56e28
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ pub(super) fn spawn_single_hex_tile(
MeshMaterial3d(assets.hex_material.clone()),
Transform::from_translation(world_pos).with_rotation(rotation),
))
.with_children(|parent| spawn_walls(parent, assets, config, &tile.walls()));
.with_children(|parent| spawn_walls(parent, assets, config, tile.walls()));
}
fn spawn_walls(parent: &mut ChildBuilder, assets: &MazeAssets, config: &MazeConfig, walls: &Walls) {

View File

@ -20,7 +20,7 @@ impl<T: SpawnUi> Widgets for T {
fn button(&mut self, text: impl Into<String>) -> EntityCommands {
let mut entity = self.spawn_ui((
Name::new("Button"),
Button::default(),
Button,
ImageNode {
color: NODE_BACKGROUND,
..default()