Eliminate a magic number
This commit is contained in:
parent
bc86898cdd
commit
65535ffc48
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ impl arbitrary::Arbitrary<'_> for FileOptions {
|
||||||
central_extra_data: Vec::with_capacity(u16::MAX as usize),
|
central_extra_data: Vec::with_capacity(u16::MAX as usize),
|
||||||
alignment: u16::arbitrary(u)?,
|
alignment: u16::arbitrary(u)?,
|
||||||
};
|
};
|
||||||
u.arbitrary_loop(None, Some(16383), |u| {
|
u.arbitrary_loop(None, Some((u16::MAX / 4) as u32), |u| {
|
||||||
options
|
options
|
||||||
.add_extra_data(
|
.add_extra_data(
|
||||||
u16::arbitrary(u)?,
|
u16::arbitrary(u)?,
|
||||||
|
|
Loading…
Add table
Reference in a new issue