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

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

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,