We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6296377 commit 0f99778Copy full SHA for 0f99778
1 file changed
src/input/process/flow.rs
@@ -46,7 +46,7 @@ impl ProcessFlowRaw {
46
// Check that flow cost is non-negative
47
if let Some(cost) = self.cost {
48
ensure!(
49
- (0.0..f64::INFINITY).contains(&cost.value()),
+ (cost.value() >= 0.0),
50
"Invalid value for flow cost ({cost}). Must be >=0."
51
);
52
}
0 commit comments