Fix cargo fmt

This commit is contained in:
louis-e
2025-07-23 21:13:46 +02:00
parent 3e9f71f81a
commit d370c72425

View File

@@ -438,11 +438,10 @@ fn filter_elevation_outliers(height_grid: &mut [Vec<f64>]) {
let mut outliers_filtered = 0;
// Replace outliers with NaN, then fill them using interpolation
for (y, row) in height_grid.iter_mut().enumerate().take(height) {
for x in 0..width {
let h = row[x];
if !h.is_nan() && (h < min_reasonable || h > max_reasonable) {
row[x] = f64::NAN;
for row in height_grid.iter_mut().take(height) {
for h in row.iter_mut().take(width) {
if !h.is_nan() && (*h < min_reasonable || *h > max_reasonable) {
*h = f64::NAN;
outliers_filtered += 1;
}
}