Stop needlessly outputting 0 value allocation amounts

This commit is contained in:
Piv
2023-03-20 22:56:54 +10:30
parent 41ee0d358f
commit 3ba8bf6e84

View File

@@ -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<T: ReciprocalAllocationSolver + Sync + Send>(
value: value,
from_cost_centre: department.clone(),
})
.filter(|cost| cost.value != 0_f64)
.collect::<Vec<MovedAmount>>()
})
.collect();