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 // For more info see docs.battlesnake.com
use core::f64; use core::f64;
use std::{ use std::collections::BTreeMap;
cmp::Ordering,
collections::{BTreeMap, BTreeSet},
time::Instant,
};
use log::info; use log::info;
use ordered_float::OrderedFloat; use ordered_float::OrderedFloat;

View File

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