We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6dc56 commit 87c3f23Copy full SHA for 87c3f23
battlesnake-rs/src/improbable_irene.rs
@@ -674,10 +674,12 @@ where
674
child_id: Vec<usize>,
675
total_number_of_iterations: usize,
676
) -> String {
677
+ // TODO: Submit a clippy bug report for this
678
+ #[allow(clippy::useless_asref)]
679
let me_id: String = format!(
680
"Depth: {depth}\nChild ID: {:?}\nMove: {:?}\nTotal Score: {:?}\nVisits: {:?}\nUCB1: {}\nAvg Score: {:?}\nIs Over: {:?}",
681
child_id,
- self.tree_context.as_ref().map(|t| t.snake_move.clone()),
682
+ &self.tree_context.as_ref().map(|t| t.snake_move.clone()),
683
self.total_score,
684
self.number_of_visits,
685
self.ucb1_normal_score(total_number_of_iterations),
0 commit comments