From 1a73b9526b38104c915efaf5062be34d58f73058 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Tue, 18 Mar 2025 17:31:56 +0100 Subject: [PATCH] Fix clippy lints --- masonry/examples/tests.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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;