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:
AZ Computer Guru
2025-12-28 12:41:51 -07:00
parent 582387f60e
commit b1de7be632
4 changed files with 15 additions and 14 deletions

View File

@@ -122,9 +122,12 @@ impl WebSocketTransport {
return Ok(Some(msg));
}
let mut stream = self.stream.lock().await;
let result = {
let mut stream = self.stream.lock().await;
stream.next().await
};
match stream.next().await {
match result {
Some(Ok(ws_msg)) => self.parse_message(ws_msg),
Some(Err(e)) => {
self.connected = false;