clippy fix
This commit is contained in:
parent
8fa8282177
commit
61e5f26bd7
@ -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;
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user