From 995cc56e280b2248ddd918c5f75327a284381e07 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Wed, 11 Dec 2024 18:01:22 +0200 Subject: [PATCH] fix: lint warnings --- src/maze/systems/spawn.rs | 2 +- src/theme/widgets.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maze/systems/spawn.rs b/src/maze/systems/spawn.rs index 476297f..5849088 100644 --- a/src/maze/systems/spawn.rs +++ b/src/maze/systems/spawn.rs @@ -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) { diff --git a/src/theme/widgets.rs b/src/theme/widgets.rs index 25539ee..bedf42a 100644 --- a/src/theme/widgets.rs +++ b/src/theme/widgets.rs @@ -20,7 +20,7 @@ impl Widgets for T { fn button(&mut self, text: impl Into) -> EntityCommands { let mut entity = self.spawn_ui(( Name::new("Button"), - Button::default(), + Button, ImageNode { color: NODE_BACKGROUND, ..default()