replace retain_mut usage

This commit is contained in:
Simon Gardling 2025-02-20 23:41:43 -05:00
parent f574e40e0a
commit 9950d712e4
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -342,11 +342,10 @@ impl FutureMoves {
}
}
node.children.retain_mut(|c| {
for c in node.children.as_mut_slice() {
debug_assert!(index_map.get(*c).unwrap().is_some());
*c = unsafe { index_map.get_unchecked(*c).unwrap_unchecked() };
true
});
}
node
})