clippy fix

This commit is contained in:
Max Känner 2024-10-03 01:44:01 +02:00
parent 8fa8282177
commit 61e5f26bd7
2 changed files with 2 additions and 6 deletions

View File

@ -11,11 +11,7 @@
// For more info see docs.battlesnake.com
use core::f64;
use std::{
cmp::Ordering,
collections::{BTreeMap, BTreeSet},
time::Instant,
};
use std::collections::BTreeMap;
use log::info;
use ordered_float::OrderedFloat;

View File

@ -17,7 +17,7 @@ pub struct SnakeToken {
}
impl SnakeToken {
pub fn from_board(board: &crate::Board) -> BTreeMap<String, SnakeToken> {
pub fn from_board(board: &crate::Board) -> BTreeMap<String, Self> {
board
.snakes
.iter()