mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 13:23:25 +00:00
Use size_of from the prelude instead of imported
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
This commit is contained in:
parent
0aa623e108
commit
0811ca0a61
11 changed files with 24 additions and 34 deletions
|
|
@ -38,7 +38,7 @@ impl MemoryUsage {
|
|||
// approximate that by using the Commit Charge value.
|
||||
|
||||
use windows_sys::Win32::System::{Threading::*, ProcessStatus::*};
|
||||
use std::mem::{MaybeUninit, size_of};
|
||||
use std::mem::MaybeUninit;
|
||||
|
||||
let proc = unsafe { GetCurrentProcess() };
|
||||
let mut mem_counters = MaybeUninit::uninit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue