Fix array_into_iter warning on Windows (#1308)

This commit is contained in:
Osspial 2019-12-04 12:02:33 -05:00 committed by GitHub
parent 400f75a2b3
commit 2888d5c6cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {