Compare commits

..

1 commit

Author SHA1 Message Date
28127e524a move parse out of loop 2021-12-28 15:50:31 -05:00

View file

@ -44,7 +44,7 @@ fn main() {
let pattern_c = Arc::clone(&pattern);
let v = pattern_c.read().expect("could not read pattern");
let mut lights = lock_c.write().unwrap();
(*v).iter().for_each(move |x: Box<dyn Pattern>| {
(*v).iter().for_each(move |x| {
x.execute(&mut lights);
});
}