diff --git a/examples/derive_enum.rs b/examples/derive_enum.rs index a44a97c..3009f06 100644 --- a/examples/derive_enum.rs +++ b/examples/derive_enum.rs @@ -10,15 +10,15 @@ use arbitrary::{Arbitrary, Unstructured}; #[derive(Arbitrary, Debug)] enum MyEnum { - UnitVariant, - TupleVariant(bool, u32), - StructVariant { + Unit, + Tuple(bool, u32), + Struct { x: i8, y: (u8, i32), }, #[arbitrary(skip)] - SkippedVariant(usize), + Skipped(usize), } fn main() { diff --git a/tests/derive.rs b/tests/derive.rs index bca6cfe..cda53bd 100644 --- a/tests/derive.rs +++ b/tests/derive.rs @@ -2,6 +2,9 @@ // Various structs/fields that we are deriving `Arbitrary` for aren't actually // used except to exercise the derive. #![allow(dead_code)] +// Various assert_eq! are used to compare result of bool amongst other data types +// In this case, using assert! is less explicit and readable +#![allow(clippy::bool_assert_comparison)] use arbitrary::*;