Skip to content

Commit 232f5c6

Browse files
committed
Updated ouput.rs - clippy's suggestions broke the output summary.
1 parent 3f01152 commit 232f5c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl SummaryPerSpecies {
236236

237237
if self.m.contains(&(particle.m)) {
238238

239-
let index = self.m.iter().position(|m| (*m - particle.m).abs() < f64::EPSILON).unwrap();
239+
let index = self.m.iter().position(|m| *m == particle.m).unwrap();
240240

241241
match (particle.incident, particle.left) {
242242
(true, true) => self.reflected[index] += 1,

0 commit comments

Comments
 (0)