From 47e57e8efc97d8a959e54118d6fe48bd6a9bf07c Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Thu, 12 Sep 2024 21:30:23 -0700 Subject: [PATCH] Fix future `missing_docs` lint. rustc 1.83 will lint `missing_docs` in `--test` builds, which did not occur previously. --- all-is-cubes-desktop/tests/end-to-end.rs | 2 ++ all-is-cubes-port/src/gltf/buffer.rs | 2 +- all-is-cubes/src/transaction.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/all-is-cubes-desktop/tests/end-to-end.rs b/all-is-cubes-desktop/tests/end-to-end.rs index fbbe81d8e..6b26acd61 100644 --- a/all-is-cubes-desktop/tests/end-to-end.rs +++ b/all-is-cubes-desktop/tests/end-to-end.rs @@ -1,3 +1,5 @@ +//! Tests which execute the `all-is-cubes` binary. + #[test] fn trycmd_tests() { let tc = trycmd::TestCases::new(); diff --git a/all-is-cubes-port/src/gltf/buffer.rs b/all-is-cubes-port/src/gltf/buffer.rs index 8ce680504..813797e2d 100644 --- a/all-is-cubes-port/src/gltf/buffer.rs +++ b/all-is-cubes-port/src/gltf/buffer.rs @@ -44,7 +44,7 @@ struct Inner { impl GltfDataDestination { #[cfg(test)] - pub fn null() -> GltfDataDestination { + pub(crate) fn null() -> GltfDataDestination { Self(Arc::new(Inner { discard: true, maximum_inline_length: 0, diff --git a/all-is-cubes/src/transaction.rs b/all-is-cubes/src/transaction.rs index 7814e6f15..0266993ee 100644 --- a/all-is-cubes/src/transaction.rs +++ b/all-is-cubes/src/transaction.rs @@ -14,7 +14,7 @@ pub use generic::*; #[cfg(test)] mod tester; #[cfg(test)] -pub use tester::*; +pub(crate) use tester::*; /// A mutation that is to be performed atomically. ///