Skip to content

Commit

Permalink
[double_coordinates.rs] Fix some refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Oct 31, 2024
1 parent 6460a48 commit 5b68363
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/rs/_internal/gods_algorithm/gods_algorithm_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,9 @@ impl GodsAlgorithmSearch {
let cached_inverses = IndexedVec::new(
search_generators
.flat
.0
.iter()
.enumerate()
.map(|(i, (flat_move_index, info))| {
if flat_move_index != FlatMoveIndex(i) {
panic!("Flat move indexing is out of order");
}
if info.flat_move_index.0 != i {
.map(|(flat_move_index, info)| {
if info.flat_move_index != flat_move_index {
panic!("Flat move indexing is out of order");
}
info.transformation.invert()
Expand Down

0 comments on commit 5b68363

Please sign in to comment.