wayland: keymap File no longer needs to be mut
This commit is contained in:
1 parent
9db9db29b7
commit
8f0ab02b09
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user