Skip to content

Commit

Permalink
Add sufficient lint allows to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsamseth committed Oct 31, 2024
1 parent 943406e commit 686549f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions goldchess-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ fn pretty_print(tokens: &impl ToString) {
}

fn main() {
pretty_print(&quote! {
//! This file is generated by `goldchess-gen`. Do not edit it manually.
#![allow(dead_code)]
#![allow(clippy::unreadable_literal)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::struct_field_names)]
});

gen_moves!(KING_MOVES, king_moves);
gen_moves!(KNIGHT_MOVES, knight_moves);
gen_moves!(PAWN_ATTACKS_WHITE, pawn_attacks, Color::White);
Expand Down

0 comments on commit 686549f

Please sign in to comment.