mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 11:55:04 +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! {
|
cfg_if! {
|
||||||
if #[cfg(target_os = "linux")] {
|
if #[cfg(target_os = "linux")] {
|
||||||
// Note: This is incredibly slow.
|
// 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) }
|
MemoryUsage { allocated: Bytes(alloc) }
|
||||||
} else {
|
} else {
|
||||||
MemoryUsage { allocated: Bytes(0) }
|
MemoryUsage { allocated: Bytes(0) }
|
||||||
|
|
Loading…
Reference in a new issue