From a68c863e83745e091ea4300423ff03d9a8d75924 Mon Sep 17 00:00:00 2001 From: Jon C Date: Thu, 16 Jan 2025 01:21:48 +0100 Subject: [PATCH] program: Mark test module `pub(crate)` #### Problem The downstream agave jobs are failing after the upgrade to Rust 1.84, because the lint for public modules needing documentation is getting tripped. #### Summary of changes Mark the test module as `pub(crate)` since it shouldn't be used outside. --- program/src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/state.rs b/program/src/state.rs index e17f773..64b55de 100644 --- a/program/src/state.rs +++ b/program/src/state.rs @@ -32,7 +32,7 @@ impl IsInitialized for RecordData { } #[cfg(test)] -pub mod tests { +pub(crate) mod tests { use {super::*, solana_program_error::ProgramError}; /// Version for tests