style(simulation): gate bounce — cargo fmt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 16:53:41 +02:00
co-authored by Claude Fable 5
parent 497f9dc94d
commit 71f70f035e
6 changed files with 23 additions and 28 deletions
+8 -12
View File
@@ -301,15 +301,13 @@ pub fn run_cascade_from_heightmap(
name,
feature_type: layer1::FeatureNameType::River,
})
.chain(
mountain_assignments
.into_iter()
.map(|(position, name)| layer1::FeatureNameAssignment {
position,
name,
feature_type: layer1::FeatureNameType::Mountain,
}),
)
.chain(mountain_assignments.into_iter().map(|(position, name)| {
layer1::FeatureNameAssignment {
position,
name,
feature_type: layer1::FeatureNameType::Mountain,
}
}))
.collect();
snapshot.layer1 = Some(l1);
snapshot.terrain_analysis = Some(ta);
@@ -607,9 +605,7 @@ mod tests {
let river_attractor_count = l1
.attractors
.iter()
.filter(|a| {
a.attractor_type == crate::simulation::generator::AttractorType::RiverMouth
})
.filter(|a| a.attractor_type == crate::simulation::generator::AttractorType::RiverMouth)
.count();
let expected_river_assignments = river_attractor_count.min(river_names.len());
let actual_river_assignments = l1