Skip to content

Commit

Permalink
nicer fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilf committed Jul 29, 2023
1 parent 41ec757 commit d73e8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions barbarosa/src/generic/search/ida.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ where

path.push(successor);

let new_search =
self.search_impl(path, is_target, current_cost + 1.0, bound, min_exceeded);
let new_cost = current_cost + 1.0;
let new_search = self.search_impl(path, is_target, new_cost, bound, min_exceeded);

if let Some(mut solution) = new_search {
solution.moves.push(mov);
Expand Down

0 comments on commit d73e8a8

Please sign in to comment.