refactor: replace static with const for global constants (#494)

This commit is contained in:
Integral authored and GitHub committed 2024-12-07 17:54:53 +08:00
1 parent 2f246537df
commit 772db7422f
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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,