clippy + fmt

main
Elijah Voigt 2 years ago
parent 29eede8fa8
commit 5c1de3525f

@ -4,7 +4,7 @@ use bevy::prelude::*;
pub struct DebugPlugin; pub struct DebugPlugin;
impl Plugin for DebugPlugin { impl Plugin for DebugPlugin {
fn build(&self, app: &mut App) { fn build(&self, _app: &mut App) {
// Nothing yet! // Nothing yet!
} }
} }

@ -4,7 +4,7 @@ use bevy::{prelude::*, utils::HashMap};
pub struct DeckPlugin; pub struct DeckPlugin;
impl Plugin for DeckPlugin { impl Plugin for DeckPlugin {
fn build(&self, app: &mut App) { fn build(&self, _app: &mut App) {
// Nothing yet! // Nothing yet!
} }
} }

@ -3,7 +3,7 @@ use bevy::prelude::*;
pub struct PlayPlugin; pub struct PlayPlugin;
impl Plugin for PlayPlugin { impl Plugin for PlayPlugin {
fn build(&self, app: &mut App) { fn build(&self, _app: &mut App) {
// Nothing yet! // Nothing yet!
} }
} }

@ -19,7 +19,7 @@ pub(crate) fn setup_cards(mut commands: Commands, deck: Res<Deck>) {
let this = deck let this = deck
.cards .cards
.get(&this_card) .get(&this_card)
.expect(format!("fech card sprite {:?}", this_card).as_str()) .unwrap_or_else(|| panic!("fech card sprite {:?}", this_card))
.clone(); .clone();
let new_this = Sprite { let new_this = Sprite {
custom_size: Some(Vec2::new(size, size)), custom_size: Some(Vec2::new(size, size)),

Loading…
Cancel
Save