diff --git a/src/logic/future_moves.rs b/src/logic/future_moves.rs index 3f9f85c..b5b6bec 100644 --- a/src/logic/future_moves.rs +++ b/src/logic/future_moves.rs @@ -545,7 +545,8 @@ impl FutureMoves { .map(|mut node| { node.parent = node .parent - .and_then(|parent| index_map.get(parent).and_then(|&x| x)); + .and_then(|parent| index_map.get(parent)) + .and_then(|&x| x); for c in node.children.as_mut_slice() { *c = index_map