From 0d0791a0731c0572ee174fe49cd2f94b81372ce7 Mon Sep 17 00:00:00 2001 From: maxluli Date: Tue, 3 May 2022 12:52:32 +0200 Subject: [PATCH] Fixed an inefficiency that I dont even want to talk about... --- src/population.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/population.rs b/src/population.rs index 00ff42a..ef1c28f 100644 --- a/src/population.rs +++ b/src/population.rs @@ -168,7 +168,8 @@ impl Population{ // ### // ##@ } - for infected_position in &people_to_infect{ + }; + for infected_position in &people_to_infect{ //people_to_infect.iter().map(|infected_position|{ let infected_index = human_idx(infected_position.x as i32, infected_position.y as i32, self.width as i32); //DEBUG @@ -191,7 +192,6 @@ impl Population{ //DEBUG //println!("Killed someone"); }; - }; stats } pub fn roll(&self,probability:u32)->bool{