diff --git a/src/main.rs b/src/main.rs index 7acdfcf..4fd7417 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,6 +51,6 @@ fn main() { //let mut lights = c_lock.write().unwrap(); p.execute(&mut lights, ticks); } - ticks++; + ticks+= 1; } } diff --git a/src/util/pattern.rs b/src/util/pattern.rs index d051d4c..5102551 100644 --- a/src/util/pattern.rs +++ b/src/util/pattern.rs @@ -25,7 +25,7 @@ impl TryFrom> for Box { struct Unit; impl Pattern for Unit { - fn execute(&self, _values: &mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>, ticks: u64) {} + fn execute(&self, _values: &mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>, _ticks: u64) {} fn parse(_args: Vec) -> Result { Ok(Unit {}) } @@ -38,7 +38,7 @@ struct Value { } impl Pattern for Value { - fn execute(&self, values: &mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>, ticks: u64) { + fn execute(&self, values: &mut RwLockWriteGuard<'_, [RawColor; crate::LED_SIZE]>, _ticks: u64) { for i in 0..crate::LED_SIZE { let mut color: RawColor = (*values)[i]; if self.r.is_some() {