Skip to content

Commit 0f46370

Browse files
Fix clippy warnings in tests
1 parent 365e73b commit 0f46370

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

examples/derive_enum.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ use arbitrary::{Arbitrary, Unstructured};
1010

1111
#[derive(Arbitrary, Debug)]
1212
enum MyEnum {
13-
UnitVariant,
14-
TupleVariant(bool, u32),
15-
StructVariant {
13+
Unit,
14+
Tuple(bool, u32),
15+
Struct {
1616
x: i8,
1717
y: (u8, i32),
1818
},
1919

2020
#[arbitrary(skip)]
21-
SkippedVariant(usize),
21+
Skipped(usize),
2222
}
2323

2424
fn main() {

tests/derive.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Various structs/fields that we are deriving `Arbitrary` for aren't actually
33
// used except to exercise the derive.
44
#![allow(dead_code)]
5+
// Various assert_eq! are used to compare result of bool amongst other data types
6+
// In this case, using assert! is less explicit and readable
7+
#![allow(clippy::bool_assert_comparison)]
58

69
use arbitrary::*;
710

0 commit comments

Comments
 (0)