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:
Thalia Archibald 2025-03-04 20:28:38 -08:00
parent 0aa623e108
commit 0811ca0a61
11 changed files with 24 additions and 34 deletions

View file

@ -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();