From 5b6836359e123340c00910d7854a687d21273014 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Thu, 31 Oct 2024 02:51:39 -0700 Subject: [PATCH] [double_coordinates.rs] Fix some refactoring. --- src/rs/_internal/gods_algorithm/gods_algorithm_table.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/rs/_internal/gods_algorithm/gods_algorithm_table.rs b/src/rs/_internal/gods_algorithm/gods_algorithm_table.rs index 9d1b52d..37a7704 100644 --- a/src/rs/_internal/gods_algorithm/gods_algorithm_table.rs +++ b/src/rs/_internal/gods_algorithm/gods_algorithm_table.rs @@ -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()