fix warnings
This commit is contained in:
parent
b013e95f2c
commit
427a0c997d
2 changed files with 3 additions and 2 deletions
|
@ -83,8 +83,8 @@ impl KeyModState {
|
|||
pub fn translate(&mut self, keymap: &impl KeyMap, key: Code) -> Code {
|
||||
self.update(key);
|
||||
match key {
|
||||
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::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))),
|
||||
_ => key,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#![feature(abi_x86_interrupt)]
|
||||
#![feature(if_let_guard)]
|
||||
#![feature(allocator_api)]
|
||||
#![allow(unused)]
|
||||
|
||||
extern crate alloc;
|
||||
mod dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue