mind-body: fix the moved tests' paths, the seam's comment and unused imports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 10:21:25 +02:00
commit 40fd220d16
3 changed files with 5 additions and 6 deletions

View file

@ -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<Option<PathBuf>> = const { std::cell::RefCell::new(None) };

View file

@ -276,10 +276,10 @@ struct WrongDial {
fn write_wrong_dial(path: &Path, heat: &str) {
let mut cache = CultCache::new();
cache.register_entry_type::<WrongDial>().unwrap();
cache.register_entry_type::<mind_body::control::Brake>().unwrap();
cache.register_entry_type::<crate::control::Brake>().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]

View file

@ -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;