Compare commits
1 commit
04df670b63
...
d3bd1fee20
Author | SHA1 | Date | |
---|---|---|---|
d3bd1fee20 |
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ fn main() {
|
||||||
run_lights(&mut controller, &lights).expect("Error running lights controller.");
|
run_lights(&mut controller, &lights).expect("Error running lights controller.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let pattern = format_multiline("unit");
|
let mul_string = format_multiline("unit");
|
||||||
let res: Result<Vec<Box<dyn Pattern>>, ParseError> = pattern.iter()
|
let res: Result<Vec<Box<dyn Pattern>>, ParseError> = mul_string.iter()
|
||||||
.map(|x: &Vec<String>| parse_line((*x).clone()))
|
.map(|x: &Vec<String>| parse_line((*x).clone()))
|
||||||
.collect();
|
.collect();
|
||||||
if res.is_ok() {
|
if res.is_ok() {
|
||||||
|
|
Loading…
Reference in a new issue