Update rust-analyzer to use windows-sys crate

This commit is contained in:
Kenny Kerr 2024-05-01 09:04:13 -05:00
parent 49e502b277
commit 99e2530583
7 changed files with 9 additions and 10 deletions

View file

@ -22,7 +22,7 @@ itertools.workspace = true
[target.'cfg(windows)'.dependencies]
miow = "0.6.0"
winapi = { version = "0.3.9", features = ["winerror"] }
windows-sys = { version = "0.52", features = ["Win32_Foundation"] }
[features]
# Uncomment to enable for the whole crate graph

View file

@ -162,7 +162,7 @@ mod imp {
pipe::NamedPipe,
Overlapped,
};
use winapi::shared::winerror::ERROR_BROKEN_PIPE;
use windows_sys::Win32::Foundation::ERROR_BROKEN_PIPE;
struct Pipe<'a> {
dst: &'a mut Vec<u8>,