Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Jul 22, 2024
1 parent 7a28097 commit 1da3cc6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/game/deck_dock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ impl Config for DeckDockConfig {

fn enter_playing() {}



#[derive(Component)]
struct MoveToward {
start: Vec3,
Expand All @@ -68,7 +66,8 @@ fn animate_move_towards(
.start
.lerp(move_toward.end, move_toward.duration.fraction());

if let (true, Some(mut e)) = (move_toward.duration.finished(), commands.get_entity(entity)) {
if let (true, Some(mut e)) = (move_toward.duration.finished(), commands.get_entity(entity))
{
e.remove::<MoveToward>();
}
}
Expand Down Expand Up @@ -190,9 +189,7 @@ fn create_dock(
let number_of_cards = deck.cards.iter().len();
commands
.spawn((
DeckDock {
number_of_cards,
},
DeckDock { number_of_cards },
SpatialBundle {
transform: Transform::from_translation(config.dock_translation)
.with_scale(Vec3::splat(config.dock_scale)),
Expand Down Expand Up @@ -232,4 +229,4 @@ fn create_card(
},
))
.id()
}
}

0 comments on commit 1da3cc6

Please sign in to comment.