diff --git a/src/extensions/collectible.rs b/src/extensions/collectible.rs index b3171d1..575c5d1 100644 --- a/src/extensions/collectible.rs +++ b/src/extensions/collectible.rs @@ -1323,7 +1323,7 @@ where Collection: FromIterator + Sized, { let size = values.len(); - let mut combination = Vec::from_iter(iter::once(-2).chain(0..(k as i64))); + let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(0..(k as i64))); unfold((size + 1).saturating_sub(k), |current_slot| { if *current_slot == 0 { return None; diff --git a/src/extensions/sequence.rs b/src/extensions/sequence.rs index 8ad2330..8e9b3c5 100644 --- a/src/extensions/sequence.rs +++ b/src/extensions/sequence.rs @@ -1805,7 +1805,7 @@ where { let values = Vec::from_iter(iterator); let size = values.len(); - let mut combination = Vec::from_iter(iter::once(-2).chain(iter::repeat(0).take(k - 1))); + let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(iter::repeat(0).take(k - 1))); unfold((size + 1).saturating_sub(k), |current_slot| { if *current_slot == 0 { return None; @@ -1860,7 +1860,7 @@ where } let values = Vec::from_iter(iterator); let size = values.len(); - let mut combination = Vec::from_iter(iter::once(-2).chain(iter::repeat(0).take(k - 1))); + let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(iter::repeat(0).take(k - 1))); unfold((size + 1).saturating_sub(k), |current_slot| { if *current_slot == 0 { return None;