diff --git a/services/keyboard/src/api.rs b/services/keyboard/src/api.rs index 5e1b65c6f..dc771cbbf 100644 --- a/services/keyboard/src/api.rs +++ b/services/keyboard/src/api.rs @@ -35,9 +35,9 @@ impl From for KeyMap { } } } -impl Into for KeyMap { - fn into(self) -> usize { - match self { +impl From 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,