Skip to content

These if statements are identical. Is that intentional? #5

@Arunscape

Description

@Arunscape

} else if self.turn == self.board.width * self.board.height {

  --> connect4-lib/src/game/mod.rs:94:77
   |
94 |                   } else if self.turn == self.board.width * self.board.height {
   |  _____________________________________________________________________________^
95 | |                     BoardState::Draw
96 | |                 } else {
   | |_________________^
   |
   = note: `#[deny(clippy::if_same_then_else)]` on by default
note: same as this
  --> connect4-lib/src/game/mod.rs:92:26
   |
92 |                   if draws {
   |  __________________________^
93 | |                     BoardState::Draw
94 | |                 } else if self.turn == self.board.width * self.board.height {
   | |_________________^

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions