diff --git a/masonry/examples/tests.rs b/masonry/examples/tests.rs index c4625e2c..d72cf05b 100644 --- a/masonry/examples/tests.rs +++ b/masonry/examples/tests.rs @@ -1,14 +1,18 @@ // Copyright 2025 the Xilem Authors // SPDX-License-Identifier: Apache-2.0 -#![allow(missing_docs)] +//! This module imports widget code from other examples. +//! +//! When running unit tests, it will compare the rendered snapshots of the widgets +//! with the expected snapshots. fn main() { - println!("This example is only used to compile other examples.") + println!("This example is only used to compile other examples."); } #[cfg(test)] -#[allow(dead_code)] +#[allow(dead_code, reason = "We don't need to run the main functions.")] +#[allow(missing_docs, reason = "Example code doesn't need docs.")] #[path = "."] pub mod others { pub mod calc_masonry;