fix warnings

This commit is contained in:
Matthieu Jolimaitre 2024-10-28 16:00:44 +01:00
parent b013e95f2c
commit 427a0c997d
2 changed files with 3 additions and 2 deletions

View file

@ -83,8 +83,8 @@ impl KeyModState {
pub fn translate(&mut self, keymap: &impl KeyMap, key: Code) -> Code { pub fn translate(&mut self, keymap: &impl KeyMap, key: Code) -> Code {
self.update(key); self.update(key);
match key { match key {
Code::Down(Key::Char(c)) => Code::Down(Key::Char(keymap.apply_mod(c, &self))), Code::Down(Key::Char(c)) => Code::Down(Key::Char(keymap.apply_mod(c, self))),
Code::Up(Key::Char(c)) => Code::Up(Key::Char(keymap.apply_mod(c, &self))), Code::Up(Key::Char(c)) => Code::Up(Key::Char(keymap.apply_mod(c, self))),
_ => key, _ => key,
} }
} }

View file

@ -3,6 +3,7 @@
#![feature(abi_x86_interrupt)] #![feature(abi_x86_interrupt)]
#![feature(if_let_guard)] #![feature(if_let_guard)]
#![feature(allocator_api)] #![feature(allocator_api)]
#![allow(unused)]
extern crate alloc; extern crate alloc;
mod dev; mod dev;