Compare commits
1 commit
c78aea5a77
...
da15e48ccc
Author | SHA1 | Date | |
---|---|---|---|
da15e48ccc |
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ fn main() {
|
|||
let mut lights = lock.write().unwrap();
|
||||
let pattern = format_multiline("val 255 150 0");
|
||||
pattern.iter()
|
||||
.map(|x| parse_line(x))
|
||||
.map(|x: &Vec<String>| parse_line(*x))
|
||||
.for_each(|res| {
|
||||
if res.is_ok() {
|
||||
res.unwrap().execute(&mut lights);
|
||||
|
|
Loading…
Reference in a new issue