Refactor: don't need to return Ok if add_extra_data failed
This commit is contained in:
parent
d53d2d61b6
commit
e86efb24b0
1 changed files with 1 additions and 2 deletions
|
@ -159,8 +159,7 @@ impl arbitrary::Arbitrary for FileOptions {
|
|||
}
|
||||
let extra_data = Vec::<ExtraDataField>::arbitrary(&mut u)?;
|
||||
for field in extra_data {
|
||||
let _ =
|
||||
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)?;
|
||||
}
|
||||
Ok(options)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue