cargo fmt

This commit is contained in:
Henry Schimke
2023-01-10 14:34:33 -06:00
parent 9f7a41f81c
commit 4f1bceee66
3 changed files with 8 additions and 8 deletions

View File

@@ -686,10 +686,10 @@ impl FinderPatternFinder {
// vary too much. We arbitrarily say that when the total deviation from average exceeds
// 5% of the total module size estimates, it's too much.
let average = totalModuleSize / max as f32;
let totalDeviation = self.possibleCenters.iter().fold(0.0, |acc, pattern| {
acc + (pattern.getEstimatedModuleSize() - average).abs()
let totalDeviation = self.possibleCenters.iter().fold(0.0, |acc, pattern| {
acc + (pattern.getEstimatedModuleSize() - average).abs()
});
totalDeviation <= 0.05 * totalModuleSize
}