Skip to content

Commit

Permalink
style(val): highlight potential code to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi-Raida committed Aug 18, 2023
1 parent f35cdf5 commit f11d542
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ fn validate_hierarchy<E: Clone + Display + Interpreter>(
validate_task(env, task, &mut count_actions, states, &mut csp)?;
}

// FIXME - issue #97
// Validate the count of the actions.
for (action_id, count) in count_actions.iter() {
match count.cmp(&1) {
Expand All @@ -596,6 +597,7 @@ fn validate_hierarchy<E: Clone + Display + Interpreter>(
};
}

// FIXME - issue #97
// Validate the CSP problem.
ensure!(csp.is_valid(), "The constraints between the tasks are not verified");
Ok(())
Expand Down

0 comments on commit f11d542

Please sign in to comment.