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)),