diff --git a/day-10/src/main.rs b/day-10/src/main.rs index cf9c9c7..abd40e8 100644 --- a/day-10/src/main.rs +++ b/day-10/src/main.rs @@ -52,7 +52,7 @@ fn count_possible_chains(jolts: &Vec<u64>) -> Result<u64, std::num::TryFromIntEr window_lengths .iter() .map(|length| Ok(permutations((*length).try_into()?))) - .product() + .product::<Result<u64, _>>() } fn chain_all(jolts: &Vec<u64>) -> (usize, usize, usize) {