From d2eda07036d9d0cf6be5c5ed7b8ebe28ea0532ff Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 24 Jul 2022 13:40:01 +0200 Subject: [PATCH] Make all modules at least 'pub(crate)' --- src/movegen/mod.rs | 12 ++++++------ src/movegen/wizardry/mod.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/movegen/mod.rs b/src/movegen/mod.rs index 3d22eb0..26b60a3 100644 --- a/src/movegen/mod.rs +++ b/src/movegen/mod.rs @@ -3,11 +3,11 @@ pub mod magic; pub use magic::*; // Move generation implementation details -mod bishop; -mod king; -mod knight; -mod pawn; -mod rook; +pub(crate) mod bishop; +pub(crate) mod king; +pub(crate) mod knight; +pub(crate) mod pawn; +pub(crate) mod rook; // Magic bitboard generation -mod wizardry; +pub(crate) mod wizardry; diff --git a/src/movegen/wizardry/mod.rs b/src/movegen/wizardry/mod.rs index 8b5ba4e..dfd732d 100644 --- a/src/movegen/wizardry/mod.rs +++ b/src/movegen/wizardry/mod.rs @@ -1,2 +1,2 @@ -mod generation; +pub(crate) mod generation; mod mask;