aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorIntegral <[email protected]>2024-12-07 17:54:53 +0800
committerGitHub <[email protected]>2024-12-07 17:54:53 +0800
commit772db7422f679db1fa06be1097cd676a73055851 (patch)
treed2247269277b27b20f34372d93eb1a778e95721b /libs
parent2f246537df8dff36a2facc60bfdd429ed065272c (diff)
downloadrustdesk-server-772db7422f679db1fa06be1097cd676a73055851.tar.gz
rustdesk-server-772db7422f679db1fa06be1097cd676a73055851.zip
refactor: replace static with const for global constants (#494)HEADmaster
Diffstat (limited to 'libs')
-rw-r--r--libs/hbb_common/src/keyboard.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hbb_common/src/keyboard.rs b/libs/hbb_common/src/keyboard.rs
index 10979f5..224f567 100644
--- a/libs/hbb_common/src/keyboard.rs
+++ b/libs/hbb_common/src/keyboard.rs
@@ -28,7 +28,7 @@ impl FromStr for KeyboardMode {
impl KeyboardMode {
pub fn iter() -> Iter<'static, KeyboardMode> {
- static KEYBOARD_MODES: [KeyboardMode; 4] = [
+ const KEYBOARD_MODES: [KeyboardMode; 4] = [
KeyboardMode::Legacy,
KeyboardMode::Map,
KeyboardMode::Translate,