Compare commits
1 commit
a5a11672cb
...
23d50d2869
Author | SHA1 | Date | |
---|---|---|---|
23d50d2869 |
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ fn main() {
|
|||
|
||||
let lock_c = Arc::clone(&lock);
|
||||
let pattern_c = Arc::clone(&pattern);
|
||||
let v: Vec<Box<dyn Pattern>> = *(pattern_c.read().expect("could not read pattern"));
|
||||
let v: Vec<Box<dyn Pattern>> = pattern_c.read().expect("could not read pattern");
|
||||
let mut lights = lock_c.write().unwrap();
|
||||
v.iter().for_each(move |x| {
|
||||
x.execute(&mut lights);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue