mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Fix array_into_iter warning on Windows (#1308)
This commit is contained in:
parent
400f75a2b3
commit
2888d5c6cf
|
@ -39,7 +39,7 @@ unsafe fn get_char(keyboard_state: &[u8; 256], v_key: u32, hkl: HKL) -> Option<c
|
||||||
hkl,
|
hkl,
|
||||||
);
|
);
|
||||||
if len >= 1 {
|
if len >= 1 {
|
||||||
char::decode_utf16(unicode_bytes.into_iter().cloned())
|
char::decode_utf16(unicode_bytes.iter().cloned())
|
||||||
.next()
|
.next()
|
||||||
.and_then(|c| c.ok())
|
.and_then(|c| c.ok())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue