From 924f1cbc02eda4a1a7bc62245c6372b54d40f110 Mon Sep 17 00:00:00 2001 From: Rich Churcher Date: Wed, 31 Jul 2024 13:35:19 +1200 Subject: [PATCH] Fix lints in nightly (#14543) # Objective Similar to #14537 , this fixes a minor lint issue causing CI failures when using nightly toolchain. ## Solution Add `#[allow(dead_code)]` to unused sample code. ## Testing `cargo run -p ci -- lints` using 1.82 toolchain. --- examples/reflection/reflection_types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/reflection/reflection_types.rs b/examples/reflection/reflection_types.rs index 1ecb88ca8b..b000e7bed5 100644 --- a/examples/reflection/reflection_types.rs +++ b/examples/reflection/reflection_types.rs @@ -34,6 +34,7 @@ pub struct C(usize); /// Deriving reflect on an enum will implement the `Reflect` and `Enum` traits #[derive(Reflect)] +#[allow(dead_code)] enum D { A, B(usize), @@ -57,6 +58,7 @@ pub struct E { /// that these values behave as expected when nested underneath Reflect-ed structs. #[derive(Reflect, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)] #[reflect_value(PartialEq, Serialize, Deserialize)] +#[allow(dead_code)] enum F { X, Y,