From 41e8d6a0d48f5a0ce86aeb1048860eecede429d9 Mon Sep 17 00:00:00 2001 From: Martin Ockajak Date: Fri, 12 Jul 2024 14:28:41 +0200 Subject: [PATCH] . --- src/extensions/collectible.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/extensions/collectible.rs b/src/extensions/collectible.rs index 575c5d1..46f48f4 100644 --- a/src/extensions/collectible.rs +++ b/src/extensions/collectible.rs @@ -1310,9 +1310,6 @@ where Item: Clone + 'a, Collection: FromIterator + Sized, { - if k == 0 { - return vec!(Collection::from_iter(iter::empty())); - } let values = Vec::from_iter(iterator); compute_combinations(&values, k) }