Compare commits
1 commit
b70e848db2
...
12f144b959
Author | SHA1 | Date | |
---|---|---|---|
12f144b959 |
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ fn main() {
|
||||||
if res.is_ok() {
|
if res.is_ok() {
|
||||||
let mut lights = lock_c.write().unwrap();
|
let mut lights = lock_c.write().unwrap();
|
||||||
let v: Vec<Box<dyn Pattern>> = res.unwrap();
|
let v: Vec<Box<dyn Pattern>> = res.unwrap();
|
||||||
v.iter.for_each(move |x| {
|
v.iter().for_each(move |x| {
|
||||||
x.execute(&mut lights);
|
x.execute(&mut lights);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue