diff --git a/src/main.rs b/src/main.rs index 9c678d8..1e50176 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,7 @@ fn main() { if res.is_ok() { let mut lights = lock_c.write().unwrap(); let v: Vec> = res.unwrap(); - v.iter().for_each(move |x| { + v.iter.for_each(move |x| { x.execute(&mut lights); }) }