Read the test registry without the explicit deref

clippy's explicit_auto_deref asks for the LazyLock itself, which
derefs to the registry the generator data keeps.

Co-Authored-By: minimax-m3.1-flash (Claude Code) <[email protected]>
This commit is contained in:
Claude Codeandminimax-m3.1-flash committed 2026-10-27 04:52:31 +05:00
1 parent 52f0e38d41
commit 729a224eef
1 file changed
+2 -2
@@ -3208,8 +3208,8 @@ mod tests {
eprintln!("skipping: no worldgen bundle at {}", root.display());
return;
}
let data =
GeneratorData::load(&root.join("worldgen"), &*TEST_REGISTRY).expect("worldgen data");
let data = GeneratorData::load(&root.join("worldgen"), &TEST_REGISTRY)
.expect("worldgen data");
let surface = |preset: &str| {
let generator = OverworldGenerator::for_world(
data.clone(),