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.
This commit is contained in:
parent
399219a2c7
commit
924f1cbc02
@ -34,6 +34,7 @@ pub struct C(usize);
|
|||||||
|
|
||||||
/// Deriving reflect on an enum will implement the `Reflect` and `Enum` traits
|
/// Deriving reflect on an enum will implement the `Reflect` and `Enum` traits
|
||||||
#[derive(Reflect)]
|
#[derive(Reflect)]
|
||||||
|
#[allow(dead_code)]
|
||||||
enum D {
|
enum D {
|
||||||
A,
|
A,
|
||||||
B(usize),
|
B(usize),
|
||||||
@ -57,6 +58,7 @@ pub struct E {
|
|||||||
/// that these values behave as expected when nested underneath Reflect-ed structs.
|
/// that these values behave as expected when nested underneath Reflect-ed structs.
|
||||||
#[derive(Reflect, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Reflect, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
#[reflect_value(PartialEq, Serialize, Deserialize)]
|
#[reflect_value(PartialEq, Serialize, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
enum F {
|
enum F {
|
||||||
X,
|
X,
|
||||||
Y,
|
Y,
|
||||||
|
Loading…
Reference in New Issue
Block a user