Skip to content

Commit

Permalink
Use contains_key instead of get(...).is_some()
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Oct 3, 2024
1 parent 5f38186 commit dac2e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rs/_internal/gods_algorithm/gods_algorithm_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl GodsAlgorithmSearch {
let new_pattern = queue_item
.pattern
.apply_transformation(&move_info.inverse_transformation);
if self.table.pattern_to_depth.get(&new_pattern).is_some() {
if self.table.pattern_to_depth.contains_key(&new_pattern) {
continue;
}

Expand Down

0 comments on commit dac2e52

Please sign in to comment.