Skip to content

Commit 0f99778

Browse files
committed
♻️ Change comparison in costs
1 parent 6296377 commit 0f99778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/process/flow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl ProcessFlowRaw {
4646
// Check that flow cost is non-negative
4747
if let Some(cost) = self.cost {
4848
ensure!(
49-
(0.0..f64::INFINITY).contains(&cost.value()),
49+
(cost.value() >= 0.0),
5050
"Invalid value for flow cost ({cost}). Must be >=0."
5151
);
5252
}

0 commit comments

Comments
 (0)