summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Pinot <texitoi@texitoi.eu>2020-08-20 00:08:13 +0200
committerGuillaume Pinot <texitoi@texitoi.eu>2020-08-20 00:08:13 +0200
commitd1321fb0d9e8b50e610c9f1eb0edf94d7465d0e1 (patch)
tree0bf2e6376bc6c9661937fef13d320f067e82275f
parent81477d414b4ae8649b33949920b7978604aedb88 (diff)
cargo clippy
-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(()),
}
}