mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
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:
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(),
|
||||
|
||||
Reference in new issue
Block a user