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

@ -37,8 +37,7 @@ impl MemoryUsage {
// There doesn't seem to be an API for determining heap usage, so we try to
// approximate that by using the Commit Charge value.
use winapi::um::processthreadsapi::*;
use winapi::um::psapi::*;
use windows_sys::Win32::System::{Threading::*, ProcessStatus::*};
use std::mem::{MaybeUninit, size_of};
let proc = unsafe { GetCurrentProcess() };