@ -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!
}
@ -4,7 +4,7 @@ use bevy::{prelude::*, utils::HashMap};
pub struct DeckPlugin;
impl Plugin for DeckPlugin {
@ -3,7 +3,7 @@ use bevy::prelude::*;
pub struct PlayPlugin;
impl Plugin for PlayPlugin {
@ -19,7 +19,7 @@ pub(crate) fn setup_cards(mut commands: Commands, deck: Res<Deck>) {
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)),