Skip to content

Commit 0672851

Browse files
Format code with rustfmt
manually reviewed by iCodeSometime
1 parent 703cc1f commit 0672851

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

src/gen_tables/king.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ pub fn write_king_moves(f: &mut File) {
7878
write!(
7979
f,
8080
" BitBoard({}), BitBoard({})];\n",
81-
KINGSIDE_CASTLE_SQUARES[0].0,
82-
KINGSIDE_CASTLE_SQUARES[1].0
81+
KINGSIDE_CASTLE_SQUARES[0].0, KINGSIDE_CASTLE_SQUARES[1].0
8382
)
8483
.unwrap()
8584
};
@@ -89,8 +88,7 @@ pub fn write_king_moves(f: &mut File) {
8988
write!(
9089
f,
9190
" BitBoard({}), BitBoard({})];\n",
92-
QUEENSIDE_CASTLE_SQUARES[0].0,
93-
QUEENSIDE_CASTLE_SQUARES[1].0
91+
QUEENSIDE_CASTLE_SQUARES[0].0, QUEENSIDE_CASTLE_SQUARES[1].0
9492
)
9593
.unwrap()
9694
};

src/gen_tables/ranks_files.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ pub fn write_bitboard_data(f: &mut File) {
7373
}
7474
write!(f, "];\n").unwrap();
7575
write!(f, "/// What are all the edge squares on the `BitBoard`?\n").unwrap();
76-
write!(
77-
f,
78-
"pub const EDGES: BitBoard = BitBoard({});\n",
79-
EDGES.0
80-
)
81-
.unwrap();
76+
write!(f, "pub const EDGES: BitBoard = BitBoard({});\n", EDGES.0).unwrap();
8277
}
8378
}

src/movegen/pseudo_legals.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
pub fn pseudo_legal_moves<T: PieceType>(src: Square, color: Color, combined: BitBoard, mask: BitBoard) {
2-
1+
pub fn pseudo_legal_moves<T: PieceType>(
2+
src: Square,
3+
color: Color,
4+
combined: BitBoard,
5+
mask: BitBoard,
6+
) {
37
}

0 commit comments

Comments
 (0)