diff --git a/src/util/pattern.rs b/src/util/pattern.rs index 877e08d..b4ee045 100644 --- a/src/util/pattern.rs +++ b/src/util/pattern.rs @@ -41,7 +41,7 @@ impl<'a> Pattern<'a> for Value { fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>) { let mut v = *values; for i in 0..crate::LED_SIZE { - let mut color: RawColor = v[i]; + let color: RawColor = v[i]; if self.r.is_some() { color[0] = self.r.unwrap(); } @@ -97,7 +97,7 @@ impl<'a> Pattern<'a> for Value { } } -pub fn parse_line(v: Vec) -> Result>, ParseError> { +pub fn parse_line(v: Vec) -> Result>, ParseError> { let res: Result, ParseError> = v.try_into(); res }