sysmaster/backport-fix-input_event_codes_rs-compatible-with-rustc-1.71..patch

26 lines
846 B
Diff
Raw Normal View History

From bbb18bd619ac58a23a70406335bb447389839e05 Mon Sep 17 00:00:00 2001
From: chenjiayi <chenjiayi22@huawei.com>
Date: Mon, 14 Aug 2023 19:02:04 +0800
Subject: [PATCH] fix(input_event_codes_rs): compatible with rustc 1.71.1
---
libs/input_event_codes_rs/src/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/input_event_codes_rs/src/build.sh b/libs/input_event_codes_rs/src/build.sh
index 9bcb9358..da51a0f9 100755
--- a/libs/input_event_codes_rs/src/build.sh
+++ b/libs/input_event_codes_rs/src/build.sh
@@ -4,7 +4,7 @@ echo "use crate::input_event_codes;
use std::collections::HashMap;
pub fn get_input_event_keycode(key_lookup: &str) -> u32 {
- let input_map = HashMap::from(["
+ let input_map: HashMap<&str, u32> = HashMap::from(["
cat "$1/input_event_codes.rs" | while read line
do
--
2.33.0