diff --git a/src/main.rs b/src/main.rs index d2b986c..0b8fd3f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn main() { let pattern = format_multiline("val 255 150 0"); pattern.iter() .map(|x: &Vec| parse_line((*x).clone())) - .for_each(|res: Result, ParseError>| { + .for_each(|res| { if res.is_ok() { res.unwrap().execute(&mut lights); } diff --git a/src/util/pattern.rs b/src/util/pattern.rs index ce732f1..d9b3327 100644 --- a/src/util/pattern.rs +++ b/src/util/pattern.rs @@ -5,7 +5,7 @@ use std::{ }; use std::sync::RwLockWriteGuard; -pub type ParseError = Box; +type ParseError = Box; pub trait Pattern<'a> { fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>);