diff --git a/src/combinations.rs b/src/combinations.rs index 4b0742a0d..e230119c1 100644 --- a/src/combinations.rs +++ b/src/combinations.rs @@ -208,9 +208,6 @@ fn remaining_for(n: usize, first: bool, indices: &[usize]) -> Option { indices .iter() .enumerate() - // TODO: Once the MSRV hits 1.37.0, we can sum options instead: - // .map(|(i, n0)| checked_binomial(n - 1 - *n0, k - i)) - // .sum() .fold(Some(0), |sum, (i, n0)| { sum.and_then(|s| s.checked_add(checked_binomial(n - 1 - *n0, k - i)?)) }) diff --git a/src/combinations_with_replacement.rs b/src/combinations_with_replacement.rs index 0e3a20e0c..5d6a034b5 100644 --- a/src/combinations_with_replacement.rs +++ b/src/combinations_with_replacement.rs @@ -157,9 +157,6 @@ fn remaining_for(n: usize, first: bool, indices: &[usize]) -> Option { indices .iter() .enumerate() - // TODO: Once the MSRV hits 1.37.0, we can sum options instead: - // .map(|(i, n0)| count(n - 1 - *n0, k - i)) - // .sum() .fold(Some(0), |sum, (i, n0)| { sum.and_then(|s| s.checked_add(count(n - 1 - *n0, k - i)?)) })