From 79df3b7f84f8a3a6e796575399d2105224870d98 Mon Sep 17 00:00:00 2001 From: Francisco Gouveia Date: Sun, 26 Jul 2026 15:04:23 +0100 Subject: [PATCH] chore: remove redundant casts --- src/block/decompress_safe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block/decompress_safe.rs b/src/block/decompress_safe.rs index d102e0d5..7c783512 100644 --- a/src/block/decompress_safe.rs +++ b/src/block/decompress_safe.rs @@ -186,7 +186,7 @@ pub(crate) fn decompress_internal( if literal_length == 15 { // The literal_length length took the maximal value, indicating that there is more // than 15 literal_length bytes. We read the extra integer. - literal_length += read_integer(input, &mut input_pos)? as usize; + literal_length += read_integer(input, &mut input_pos)?; } if literal_length > input.len() - input_pos { @@ -222,7 +222,7 @@ pub(crate) fn decompress_internal( if match_length == MINMATCH + 15 { // The match length took the maximal value, indicating that there is more bytes. We // read the extra integer. - match_length += read_integer(input, &mut input_pos)? as usize; + match_length += read_integer(input, &mut input_pos)?; } // could be skipped with unchecked-decode