diff --git a/src/main.rs b/src/main.rs index 68d4bfa..0b8fd3f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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| parse_line((*x).clone())) .for_each(|res| { if res.is_ok() { res.unwrap().execute(&mut lights);