Compare commits
1 commit
d3bd1fee20
...
04df670b63
Author | SHA1 | Date | |
---|---|---|---|
04df670b63 |
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 mul_string = format_multiline("unit");
|
let pattern = format_multiline("unit");
|
||||||
let res: Result<Vec<Box<dyn Pattern>>, ParseError> = mul_string.iter()
|
let res: Result<Vec<Box<dyn Pattern>>, ParseError> = pattern.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