From e86efb24b0d412164e3ceff161cfccd262bbcf08 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Sat, 13 May 2023 14:05:32 -0700 Subject: [PATCH] Refactor: don't need to return Ok if add_extra_data failed --- src/write.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/write.rs b/src/write.rs index b1e62b3a..c5020058 100644 --- a/src/write.rs +++ b/src/write.rs @@ -159,8 +159,7 @@ impl arbitrary::Arbitrary for FileOptions { } let extra_data = Vec::::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) }