From 6163414dd12c081d035fb78b709bd0a32fc3bd6c Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Wed, 12 Oct 2022 15:24:55 +0200 Subject: [PATCH] keyboard: Implement From instead of Into Signed-off-by: Jean-Pierre De Jesus DIAZ --- services/keyboard/src/api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,