From 5c1de3525feaee0a4079d702651c6b0719c3247e Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Fri, 6 Dec 2024 23:18:17 -0800 Subject: [PATCH] clippy + fmt --- src/debug.rs | 2 +- src/deck.rs | 2 +- src/play.rs | 2 +- src/setup.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/debug.rs b/src/debug.rs index 2353400..98b493f 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -4,7 +4,7 @@ use bevy::prelude::*; pub struct DebugPlugin; impl Plugin for DebugPlugin { - fn build(&self, app: &mut App) { + fn build(&self, _app: &mut App) { // Nothing yet! } } diff --git a/src/deck.rs b/src/deck.rs index 6f2676c..d36bf9c 100644 --- a/src/deck.rs +++ b/src/deck.rs @@ -4,7 +4,7 @@ use bevy::{prelude::*, utils::HashMap}; pub struct DeckPlugin; impl Plugin for DeckPlugin { - fn build(&self, app: &mut App) { + fn build(&self, _app: &mut App) { // Nothing yet! } } diff --git a/src/play.rs b/src/play.rs index 2af7aaf..d486c5c 100644 --- a/src/play.rs +++ b/src/play.rs @@ -3,7 +3,7 @@ use bevy::prelude::*; pub struct PlayPlugin; impl Plugin for PlayPlugin { - fn build(&self, app: &mut App) { + fn build(&self, _app: &mut App) { // Nothing yet! } } diff --git a/src/setup.rs b/src/setup.rs index 60df47b..f560424 100644 --- a/src/setup.rs +++ b/src/setup.rs @@ -19,7 +19,7 @@ pub(crate) fn setup_cards(mut commands: Commands, deck: Res) { let this = deck .cards .get(&this_card) - .expect(format!("fech card sprite {:?}", this_card).as_str()) + .unwrap_or_else(|| panic!("fech card sprite {:?}", this_card)) .clone(); let new_this = Sprite { custom_size: Some(Vec2::new(size, size)),