Compare commits

..

1 Commits

Author SHA1 Message Date
jane 455fff23cb rw lock write 2021-12-26 21:33:37 -05:00
1 changed files with 2 additions and 2 deletions

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() {