From f18fedd5cca17121468a3f53471079dfb926c1c9 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 28 Jan 2025 15:05:47 -0500 Subject: [PATCH] clippy --- src/complexagent.rs | 4 ++-- src/main.rs | 1 - src/misc.rs | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/complexagent.rs b/src/complexagent.rs index fa1aa06..0bbcbc2 100644 --- a/src/complexagent.rs +++ b/src/complexagent.rs @@ -1,10 +1,10 @@ use crate::{ agent::Agent, board::{Board, BOARD_SIZE}, - misc::{offsets, split_from}, + misc::offsets, piece::Piece, }; -use rand::{seq::IteratorRandom, Rng}; +use rand::seq::IteratorRandom; pub struct ComplexAgent { color: Piece, diff --git a/src/main.rs b/src/main.rs index 18514f2..48a3910 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -use agent::QueueAgent; use complexagent::ComplexAgent; use game::Game; use piece::Piece; diff --git a/src/misc.rs b/src/misc.rs index aa717d3..c74f2d8 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -1,7 +1,5 @@ use std::{iter::Rev, ops::RangeInclusive}; -use num::CheckedSub; - pub fn split_from(min: T, max: T, x: T) -> Vec> where T: num::Integer + Copy,