style(simulation): gate bounce — cargo fmt
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user