mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
keyboard: Implement From instead of Into
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
709ff8f9f2
commit
6163414dd1
1 changed files with 3 additions and 3 deletions
|
|
@ -35,9 +35,9 @@ impl From<usize> for KeyMap {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl Into<usize> for KeyMap {
|
||||
fn into(self) -> usize {
|
||||
match self {
|
||||
impl From<KeyMap> for usize {
|
||||
fn from(map: KeyMap) -> usize {
|
||||
match map {
|
||||
// note: these indicese correspond to the position on the keyboard menu
|
||||
KeyMap::Qwerty => 0,
|
||||
KeyMap::Azerty => 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue