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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user