wayland: keymap File no longer needs to be mut

This commit is contained in:
Wez Furlong committed 2021-09-19 18:27:57 -07:00
1 parent 9db9db29b7
commit 8f0ab02b09
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ impl WaylandConnection {
*self.key_repeat_delay.borrow_mut() = *delay;
}
WlKeyboardEvent::Keymap { format, fd, size } => {
let mut file = unsafe { std::fs::File::from_raw_fd(*fd) };
let file = unsafe { std::fs::File::from_raw_fd(*fd) };
match format {
KeymapFormat::XkbV1 => {
let mut data = vec![0u8; *size as usize];