diff --git a/src/overhead_allocation.rs b/src/overhead_allocation.rs index e5ba2f5..9ef8187 100644 --- a/src/overhead_allocation.rs +++ b/src/overhead_allocation.rs @@ -704,6 +704,7 @@ fn solve_reciprocal_no_from( // cost.value / new_cost * diff // }, }) + .filter(|cost| cost.value != 0_f64) .collect(), } }) @@ -749,6 +750,7 @@ fn solve_reciprocal_with_from( value: value, from_cost_centre: department.clone(), }) + .filter(|cost| cost.value != 0_f64) .collect::>() }) .collect();