generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
0c4adba682
commit
226ad3ea6e
|
@ -1,5 +1,4 @@
|
||||||
use std::convert::Infallible;
|
use std::convert::Infallible;
|
||||||
use std::fmt::Display;
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use libpt::cli::console::{style, StyledObject};
|
use libpt::cli::console::{style, StyledObject};
|
||||||
|
|
|
@ -5,7 +5,6 @@ use crate::error::*;
|
||||||
use crate::wlist::word::{ManyWordsRef, Word, WordData};
|
use crate::wlist::word::{ManyWordsRef, Word, WordData};
|
||||||
use crate::wlist::WordList;
|
use crate::wlist::WordList;
|
||||||
|
|
||||||
use libpt::cli::console::StyledObject;
|
|
||||||
use libpt::log::{debug, trace};
|
use libpt::log::{debug, trace};
|
||||||
|
|
||||||
pub mod response;
|
pub mod response;
|
||||||
|
|
|
@ -3,9 +3,7 @@ use crate::wlist::WordList;
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::convert::Infallible;
|
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
use super::{Evaluation, Game};
|
use super::{Evaluation, Game};
|
||||||
|
|
||||||
|
@ -49,7 +47,7 @@ impl From<char> for Status {
|
||||||
|
|
||||||
impl GuessResponse {
|
impl GuessResponse {
|
||||||
pub(crate) fn new<WL: WordList>(guess: &Word, status: Evaluation, game: &Game<WL>) -> Self {
|
pub(crate) fn new<WL: WordList>(guess: &Word, status: Evaluation, game: &Game<WL>) -> Self {
|
||||||
let mut new = Self {
|
let new = Self {
|
||||||
guess: guess.to_owned(),
|
guess: guess.to_owned(),
|
||||||
evaluation: status,
|
evaluation: status,
|
||||||
solution: game.solution().cloned(),
|
solution: game.solution().cloned(),
|
||||||
|
|
|
@ -11,7 +11,6 @@ use crate::{
|
||||||
|
|
||||||
#[cfg(feature = "builtin")]
|
#[cfg(feature = "builtin")]
|
||||||
pub mod naive;
|
pub mod naive;
|
||||||
use libpt::log::debug;
|
|
||||||
#[cfg(feature = "builtin")]
|
#[cfg(feature = "builtin")]
|
||||||
pub use naive::NaiveSolver;
|
pub use naive::NaiveSolver;
|
||||||
#[cfg(feature = "builtin")]
|
#[cfg(feature = "builtin")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use libpt::log::{info, trace};
|
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::word::{ManyWordDatas, Word};
|
||||||
use crate::wlist::WordList;
|
use crate::wlist::WordList;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue