Skip to content

Commit 87c3f23

Browse files
committed
Ignore clippy that I think is wrong
1 parent 3f6dc56 commit 87c3f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

battlesnake-rs/src/improbable_irene.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,12 @@ where
674674
child_id: Vec<usize>,
675675
total_number_of_iterations: usize,
676676
) -> String {
677+
// TODO: Submit a clippy bug report for this
678+
#[allow(clippy::useless_asref)]
677679
let me_id: String = format!(
678680
"Depth: {depth}\nChild ID: {:?}\nMove: {:?}\nTotal Score: {:?}\nVisits: {:?}\nUCB1: {}\nAvg Score: {:?}\nIs Over: {:?}",
679681
child_id,
680-
self.tree_context.as_ref().map(|t| t.snake_move.clone()),
682+
&self.tree_context.as_ref().map(|t| t.snake_move.clone()),
681683
self.total_score,
682684
self.number_of_visits,
683685
self.ucb1_normal_score(total_number_of_iterations),

0 commit comments

Comments
 (0)