Compare commits
1 commit
28127e524a
...
e2f11d0445
Author | SHA1 | Date | |
---|---|---|---|
e2f11d0445 |
1 changed files with 1 additions and 1 deletions
|
@ -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| {
|
||||
(*v).iter().for_each(move |x: Box<dyn Pattern>| {
|
||||
x.execute(&mut lights);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue