summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/src/main.rs b/firmware/src/main.rs
index b48b015..8e884fc 100644
--- a/firmware/src/main.rs
+++ b/firmware/src/main.rs
@@ -293,9 +293,9 @@ fn transpose_right(e: Event) -> Event {
}
fn de(bytes: &[u8]) -> Result<Event, ()> {
- match bytes {
- &[b'P', x, y, b'\n'] => Ok(Event::Press(x as usize, y as usize)),
- &[b'R', x, y, b'\n'] => Ok(Event::Release(x as usize, y as usize)),
+ match *bytes {
+ [b'P', x, y, b'\n'] => Ok(Event::Press(x as usize, y as usize)),
+ [b'R', x, y, b'\n'] => Ok(Event::Release(x as usize, y as usize)),
_ => Err(()),
}
}