Skip to content

Commit

Permalink
allow clippy lints to game_state.rs and ship.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxblan committed Mar 15, 2024
1 parent 2ee175b commit f2442d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugin/game_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ impl GameState {
Ok(new_state)
}

#[allow(clippy::nonminimal_bool)]
pub fn advance_turn(&mut self) {
self.current_ship.free_acc = 1;
self.current_ship.free_turns = 1;
Expand Down Expand Up @@ -498,6 +499,7 @@ impl GameState {
.collect()
}

#[allow(clippy::only_used_in_recursion)]
pub fn possible_action_comb(
&self,
current_state: &GameState,
Expand Down
1 change: 1 addition & 0 deletions src/plugin/ship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub struct Ship {
#[pymethods]
impl Ship {
#[new]
#[allow(clippy::too_many_arguments)]
pub fn new(
position: CubeCoordinates,
team: TeamEnum,
Expand Down

0 comments on commit f2442d3

Please sign in to comment.