1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00

wayland: keymap File no longer needs to be mut

This commit is contained in:
Wez Furlong 2021-09-19 18:27:57 -07:00
parent 9db9db29b7
commit 8f0ab02b09

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];