mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
chore: fix clippy warning (#16512)
This commit is contained in:
parent
ab7e80bde4
commit
68da943498
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ pub fn mem_info() -> Option<MemInfo> {
|
|||
mem_info.swap_free = xs.xsu_avail;
|
||||
|
||||
let mut count: u32 = libc::HOST_VM_INFO64_COUNT as _;
|
||||
let mut stat = unsafe { std::mem::zeroed::<libc::vm_statistics64>() };
|
||||
let mut stat = std::mem::zeroed::<libc::vm_statistics64>();
|
||||
if libc::host_statistics64(
|
||||
// TODO(@littledivy): Put this in a once_cell.
|
||||
libc::mach_host_self(),
|
||||
|
|
Loading…
Reference in a new issue