Compare commits

..

1 commit

Author SHA1 Message Date
455fff23cb rw lock write 2021-12-26 21:33:37 -05:00

View file

@ -25,7 +25,7 @@ impl<'a> TryFrom<Vec<String>> for Box<dyn Pattern<'a>> {
struct Unit;
impl<'a> Pattern<'a> for Unit {
fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor]>)) {}
fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor]>) {}
fn parse(args: Vec<String>) -> Result<Self, ParseError> {
Ok(Unit {})
}
@ -38,7 +38,7 @@ struct Value {
}
impl<'a> Pattern<'a> for Value {
fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor]>)) {
fn execute(&self, values: &'a mut RwLockWriteGuard<'_, [RawColor]>) {
for i in 0..crate::LED_SIZE {
let color: RawColor = *values[i];
if self.r.is_some() {