Skip to content

Commit

Permalink
fix: cargo clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi-Raida committed Aug 30, 2023
1 parent 342f780 commit 26b2005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator/src/interfaces/unified_planning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ fn validate_schedule_constraints(problem: &Problem, plan: &Plan, verbose: bool)
let start_var = CspVariable::new(vec![(rational(start_value)?, rational(start_value)? + &env.epsilon)]);
let end_var = CspVariable::new(vec![(rational(end_value)?, rational(end_value)? + &env.epsilon)]);
// Add them
csp.add_variable(start_id.into(), start_var)?;
csp.add_variable(end_id.into(), end_var)?;
csp.add_variable(start_id, start_var)?;
csp.add_variable(end_id, end_var)?;
}

// Create CSP Constraints.
Expand Down Expand Up @@ -750,7 +750,7 @@ fn build_timed_effect(problem: &Problem, verbose: bool) -> Result<Vec<DurativeEf
problem
.timed_effects
.iter()
.map(|te| build_timed_effect_action(te))
.map(build_timed_effect_action)
.collect::<Result<Vec<_>>>()
}

Expand Down

0 comments on commit 26b2005

Please sign in to comment.