Compare commits
1 commit
dfa638d9b4
...
455fff23cb
Author | SHA1 | Date | |
---|---|---|---|
455fff23cb |
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue