Remove redundant literal suffix

This commit is contained in:
htrefil 2020-10-25 18:21:59 +01:00
parent f845ecc384
commit b0ee595ce8

View file

@ -28,7 +28,7 @@ impl EventReader {
}
pub async fn read(&mut self) -> Result<input_event, Error> {
let mut buffer = [0u8; mem::size_of::<input_event>()];
let mut buffer = [0; mem::size_of::<input_event>()];
self.file
.read_exact(&mut buffer)
.await