From 2bb6bf4fc0c850a10296e7e8dfee186017822ed9 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Thu, 21 Mar 2024 15:30:28 +0000 Subject: [PATCH] automatic cargo CI changes --- src/game/mod.rs | 9 +++++++-- src/wlist/mod.rs | 2 +- src/wlist/word.rs | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/game/mod.rs b/src/game/mod.rs index db05b4b..3843b0a 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -31,7 +31,12 @@ impl Game { /// # Errors /// /// This function will return an error if . - pub(crate) fn build(length: usize, precompute: bool, max_steps: usize, wlist: WL) -> anyhow::Result { + pub(crate) fn build( + length: usize, + precompute: bool, + max_steps: usize, + wlist: WL, + ) -> anyhow::Result { let solution = wlist.rand_solution(); let mut game = Game { length, @@ -39,7 +44,7 @@ impl Game { max_steps, step: 0, solution, - wordlist: wlist + wordlist: wlist, }; Ok(game) diff --git a/src/wlist/mod.rs b/src/wlist/mod.rs index e084ba6..6969480 100644 --- a/src/wlist/mod.rs +++ b/src/wlist/mod.rs @@ -1,4 +1,4 @@ -use rand::{seq::IteratorRandom}; +use rand::seq::IteratorRandom; use std::collections::HashMap; use std::ops::RangeBounds; diff --git a/src/wlist/word.rs b/src/wlist/word.rs index e366015..7513a6f 100644 --- a/src/wlist/word.rs +++ b/src/wlist/word.rs @@ -58,7 +58,7 @@ impl WordMap { let len = self.len(); let mut c: f64 = l_under_sigmoid * (0.5 + self.n_common() as f64 / len as f64); c *= 1e-7; - debug!(threshold=c); + debug!(threshold = c); c } pub fn inner(&self) -> &HashMap {