From 31078e08598651d4c50fa598395d17b630fd171b Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Mon, 29 Jan 2024 19:29:32 +0100 Subject: [PATCH] src/read/aranges.rs: Fix clippy::try_err --- src/read/aranges.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read/aranges.rs b/src/read/aranges.rs index 83159b69..cffd5021 100644 --- a/src/read/aranges.rs +++ b/src/read/aranges.rs @@ -182,7 +182,7 @@ where .and_then(|x| x.checked_add(segment_size)) .ok_or(Error::InvalidAddressRange)?; if tuple_length == 0 { - return Err(Error::InvalidAddressRange)?; + return Err(Error::InvalidAddressRange); } let padding = if header_length % tuple_length == 0 { 0