mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Merge #5580
5580: fix cast r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c8573c418c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ impl MemoryUsage {
|
|||
cfg_if! {
|
||||
if #[cfg(target_os = "linux")] {
|
||||
// Note: This is incredibly slow.
|
||||
let alloc = unsafe { libc::mallinfo() }.uordblks as u32 as isize;
|
||||
let alloc = unsafe { libc::mallinfo() }.uordblks as isize;
|
||||
MemoryUsage { allocated: Bytes(alloc) }
|
||||
} else {
|
||||
MemoryUsage { allocated: Bytes(0) }
|
||||
|
|
Loading…
Reference in a new issue