diff --git a/src/iter_index.rs b/src/iter_index.rs index be55457ae..23b7863d0 100644 --- a/src/iter_index.rs +++ b/src/iter_index.rs @@ -52,7 +52,6 @@ where type Output = Take>; fn index(self, iter: I) -> Self::Output { - debug_assert!(!self.is_empty(), "The given `RangeInclusive` is exhausted. The result of indexing with an exhausted `RangeInclusive` is unspecified."); iter.skip(*self.start()) .take((1 + *self.end()).saturating_sub(*self.start())) }