From 3a0525750588a52f5ba43f7fb14024127bd76f5d Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Tue, 9 Jul 2024 20:17:23 +0200 Subject: [PATCH] fix test --- base_layer/core/src/iterators/chunk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_layer/core/src/iterators/chunk.rs b/base_layer/core/src/iterators/chunk.rs index 3dc91e5066..8d771bba5d 100644 --- a/base_layer/core/src/iterators/chunk.rs +++ b/base_layer/core/src/iterators/chunk.rs @@ -100,7 +100,7 @@ macro_rules! non_overlapping_iter_impl { } let size = match <$ty>::try_from(self.size) { Ok(size) => size, - Err(_) => return None, + Err(_) => <$ty>::MAX, }; match self.current.checked_add(size) { Some(next) => { @@ -133,7 +133,7 @@ macro_rules! non_overlapping_iter_impl { let size = match <$ty>::try_from(self.size) { Ok(size) => size, - Err(_) => return None, + Err(_) => <$ty>::MAX, }; // Is this the first iteration? if self.end == self.current_end {