diff --git a/crates/mind-body/src/control.rs b/crates/mind-body/src/control.rs index bf4a65e..77c4a5b 100644 --- a/crates/mind-body/src/control.rs +++ b/crates/mind-body/src/control.rs @@ -281,8 +281,8 @@ fn control_root() -> PathBuf { PathBuf::from(CONTROL_ROOT) } -/// The test seam: this crate's own tests move the root for their thread. It -/// does not exist in a library build, and it is not a cargo feature. +// The test seam: this crate's own tests move the root for their thread. It +// does not exist in a library build, and it is not a cargo feature. #[cfg(test)] thread_local! { static TEST_ROOT: std::cell::RefCell> = const { std::cell::RefCell::new(None) }; diff --git a/crates/mind-body/src/control/tests.rs b/crates/mind-body/src/control/tests.rs index d4bb8fd..fde28d5 100644 --- a/crates/mind-body/src/control/tests.rs +++ b/crates/mind-body/src/control/tests.rs @@ -276,10 +276,10 @@ struct WrongDial { fn write_wrong_dial(path: &Path, heat: &str) { let mut cache = CultCache::new(); cache.register_entry_type::().unwrap(); - cache.register_entry_type::().unwrap(); + cache.register_entry_type::().unwrap(); cache.add_generic_backing_store(SingleFileMessagePackBackingStore::new(path)).unwrap(); cache.pull_all_backing_stores().unwrap(); - cache.put(mind_body::control::DIAL_KEY, &WrongDial { heat: heat.into() }).unwrap(); + cache.put(crate::control::DIAL_KEY, &WrongDial { heat: heat.into() }).unwrap(); } #[test] diff --git a/crates/mind-body/tests/control.rs b/crates/mind-body/tests/control.rs index 84f13e0..88e309e 100644 --- a/crates/mind-body/tests/control.rs +++ b/crates/mind-body/tests/control.rs @@ -13,9 +13,8 @@ use std::path::{Path, PathBuf}; use std::time::Duration; use chrono::{DateTime, TimeZone, Utc}; -use cultcache_rs::{CultCache, DatabaseEntry, SingleFileMessagePackBackingStore}; -use mind_body::control::{BurnRate, ControlWriter, FileSource, control_path, load_state}; use eureka_pipeline::Slug; +use mind_body::control::{BurnRate, ControlWriter, FileSource, control_path, load_state}; use rust_decimal::Decimal; use std::str::FromStr;