Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxblan committed Jun 16, 2024
1 parent 3a4ebd8 commit 3399f48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugin/action/advance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Advance {
pub fn perform(&self, state: &mut GameState) -> Result<(), PyErr> {
let mut player = state.clone_current_player();

player.advance_by(&state, self.distance)?;
player.advance_by(state, self.distance)?;

let mut last_card: Option<&Card> = None;
let mut card_bought = false;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/action/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Card {
match self {
Card::FallBack => current.move_to_field(state, other.position - 1)?,
Card::HurryAhead => current.move_to_field(state, other.position + 1)?,
Card::EatSalad => current.eat_salad(&state)?,
Card::EatSalad => current.eat_salad(state)?,
Card::SwapCarrots => swap(&mut current.carrots, &mut other.carrots),
}
state.update_current_player(current);
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/action/eat_salad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ impl EatSalad {
pub fn perform(&self, state: &mut GameState) -> Result<(), PyErr> {
let mut current = state.clone_current_player();
current.eat_salad(state)?;
return Ok(());
Ok(())
}
}

0 comments on commit 3399f48

Please sign in to comment.