mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
fix cast
This commit is contained in:
parent
402433470a
commit
4bab553029
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