From d1321fb0d9e8b50e610c9f1eb0edf94d7465d0e1 Mon Sep 17 00:00:00 2001 From: Guillaume Pinot Date: Thu, 20 Aug 2020 00:08:13 +0200 Subject: cargo clippy --- firmware/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware') 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 { - 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(()), } } -- cgit v1.2.3