automatic cargo CI changes

This commit is contained in:
cscherrNT 2024-03-21 15:30:28 +00:00 committed by github-actions[bot]
parent a3e348ba91
commit 2bb6bf4fc0
3 changed files with 9 additions and 4 deletions

View File

@ -31,7 +31,12 @@ impl<WL: WordList> Game<WL> {
/// # Errors
///
/// This function will return an error if .
pub(crate) fn build(length: usize, precompute: bool, max_steps: usize, wlist: WL) -> anyhow::Result<Self> {
pub(crate) fn build(
length: usize,
precompute: bool,
max_steps: usize,
wlist: WL,
) -> anyhow::Result<Self> {
let solution = wlist.rand_solution();
let mut game = Game {
length,
@ -39,7 +44,7 @@ impl<WL: WordList> Game<WL> {
max_steps,
step: 0,
solution,
wordlist: wlist
wordlist: wlist,
};
Ok(game)

View File

@ -1,4 +1,4 @@
use rand::{seq::IteratorRandom};
use rand::seq::IteratorRandom;
use std::collections::HashMap;
use std::ops::RangeBounds;