This commit is contained in:
jane 2021-12-28 15:15:13 -05:00
parent dafac3d248
commit 44612e48e7

View file

@ -34,7 +34,7 @@ fn main() {
thread::sleep(time::Duration::from_millis(250));
let mut lights = lock.write().unwrap();
let pattern = format_multiline("unit");
let res: Result<Vec<Box<dyn Pattern>>> = pattern.iter()
let res: Result<Vec<Box<dyn Pattern>>, ParseError> = pattern.iter()
.map(|x: &Vec<String>| parse_line((*x).clone()))
.collect();