Skip to content

Commit

Permalink
Ignore clippy that I think is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyja committed Jan 20, 2024
1 parent 3f6dc56 commit 87c3f23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion battlesnake-rs/src/improbable_irene.rs
Expand Up @@ -674,10 +674,12 @@ where
child_id: Vec<usize>,
total_number_of_iterations: usize,
) -> String {
// TODO: Submit a clippy bug report for this
#[allow(clippy::useless_asref)]
let me_id: String = format!(
"Depth: {depth}\nChild ID: {:?}\nMove: {:?}\nTotal Score: {:?}\nVisits: {:?}\nUCB1: {}\nAvg Score: {:?}\nIs Over: {:?}",
child_id,
self.tree_context.as_ref().map(|t| t.snake_move.clone()),
&self.tree_context.as_ref().map(|t| t.snake_move.clone()),
self.total_score,
self.number_of_visits,
self.ucb1_normal_score(total_number_of_iterations),
Expand Down

0 comments on commit 87c3f23

Please sign in to comment.