From f0653bb10a55243aa6864167261b17852674cb00 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 21 Dec 2022 11:38:54 +0800 Subject: [PATCH] fix compile again --- src/keyboard.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/keyboard.rs b/src/keyboard.rs index 2c09258d8..641925338 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -339,12 +339,14 @@ pub fn event_to_key_event(event: &Event) -> Option { translate_keyboard_mode(event, key_event)? } _ => { - let res; #[cfg(not(any(target_os = "android", target_os = "ios")))] - res = legacy_keyboard_mode(event, key_event)?; + { + legacy_keyboard_mode(event, key_event)? + } #[cfg(any(target_os = "android", target_os = "ios"))] - res = None?; - res + { + None? + } } }; #[cfg(not(any(target_os = "android", target_os = "ios")))]