From 226ad3ea6efc34c9f80800cbd4dbc8affd61ecd4 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Tue, 23 Jul 2024 09:25:12 +0000 Subject: [PATCH] automatic cargo CI changes --- src/game/evaluation.rs | 1 - src/game/mod.rs | 1 - src/game/response.rs | 4 +--- src/solve/mod.rs | 1 - src/solve/naive/mod.rs | 2 +- 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/game/evaluation.rs b/src/game/evaluation.rs index 1fa7603..83a790b 100644 --- a/src/game/evaluation.rs +++ b/src/game/evaluation.rs @@ -1,5 +1,4 @@ use std::convert::Infallible; -use std::fmt::Display; use std::str::FromStr; use libpt::cli::console::{style, StyledObject}; diff --git a/src/game/mod.rs b/src/game/mod.rs index b778469..95796ad 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -5,7 +5,6 @@ use crate::error::*; use crate::wlist::word::{ManyWordsRef, Word, WordData}; use crate::wlist::WordList; -use libpt::cli::console::StyledObject; use libpt::log::{debug, trace}; pub mod response; diff --git a/src/game/response.rs b/src/game/response.rs index 280b0f0..8b4bd00 100644 --- a/src/game/response.rs +++ b/src/game/response.rs @@ -3,9 +3,7 @@ use crate::wlist::WordList; use colored::Colorize; #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -use std::convert::Infallible; use std::fmt::Display; -use std::str::FromStr; use super::{Evaluation, Game}; @@ -49,7 +47,7 @@ impl From for Status { impl GuessResponse { pub(crate) fn new(guess: &Word, status: Evaluation, game: &Game) -> Self { - let mut new = Self { + let new = Self { guess: guess.to_owned(), evaluation: status, solution: game.solution().cloned(), diff --git a/src/solve/mod.rs b/src/solve/mod.rs index 9a9368c..54842e7 100644 --- a/src/solve/mod.rs +++ b/src/solve/mod.rs @@ -11,7 +11,6 @@ use crate::{ #[cfg(feature = "builtin")] pub mod naive; -use libpt::log::debug; #[cfg(feature = "builtin")] pub use naive::NaiveSolver; #[cfg(feature = "builtin")] diff --git a/src/solve/naive/mod.rs b/src/solve/naive/mod.rs index 0cb9313..b5c6581 100644 --- a/src/solve/naive/mod.rs +++ b/src/solve/naive/mod.rs @@ -1,6 +1,6 @@ use libpt::log::{info, trace}; -use crate::error::{Error, SolverError, WResult}; +use crate::error::{SolverError, WResult}; use crate::wlist::word::{ManyWordDatas, Word}; use crate::wlist::WordList;