cleanup and fix warnings

This commit is contained in:
2025-03-11 09:46:19 -04:00
parent 69dc686d0a
commit 0c832b1c7b
4 changed files with 13 additions and 6 deletions

View File

@@ -74,6 +74,7 @@ impl std::fmt::Display for FutureMoveConfig {
}
#[derive(Debug, Clone, Copy)]
#[allow(dead_code)]
pub enum ChildrenEvalMethod {
/// Best (by far) strat compared to Max or Min
Average,
@@ -168,6 +169,7 @@ impl FutureMoves {
}
}
#[allow(dead_code)]
fn remove(&mut self, index: usize) {
if let Some(parent) = self.arena[index].parent {
self.arena[parent].children.retain(|&j| j != index);
@@ -410,6 +412,7 @@ impl FutureMoves {
/// Checks the consistancy of the Arena (parents and children)
/// returns a vector of errors ([`String`])
#[allow(dead_code)]
pub fn check_arena(&self) -> Vec<String> {
let mut errors = vec![];
for idx in 0..self.arena.len() {