mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Update rust-analyzer to use windows-sys crate
This commit is contained in:
parent
49e502b277
commit
99e2530583
7 changed files with 9 additions and 10 deletions
|
@ -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() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue