Fix more Windows crate 0.58 API changes
- GetDesc now returns value instead of mutable param - CPUAccessFlags is u32, not flag wrapper - SetEvictionPriority takes enum directly - Fix encode_utf16 iteration - Rename display variable to avoid tracing conflict - Fix borrow issue in websocket receive
This commit is contained in:
@@ -85,7 +85,7 @@ impl KeyboardController {
|
||||
let encoded = ch.encode_utf16(&mut buf);
|
||||
|
||||
// For characters that fit in a single u16
|
||||
for &code_unit in encoded {
|
||||
for &code_unit in encoded.iter() {
|
||||
// Key down
|
||||
inputs.push(INPUT {
|
||||
r#type: INPUT_KEYBOARD,
|
||||
|
||||
Reference in New Issue
Block a user