This commit is contained in:
Chris Hennick 2023-05-13 14:11:43 -07:00
parent 15c7958df2
commit c79f734a11
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -160,7 +160,8 @@ impl arbitrary::Arbitrary for FileOptions {
}
let extra_data = Vec::<ExtraDataField>::arbitrary(&mut u)?;
for field in extra_data {
options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only)?;
options.add_extra_data(field.header_id, field.data.as_slice(), field.central_only)
.map_err(|_| arbitrary::Error::IncorrectFormat);
}
Ok(options)
}