From 3767a6233990f0eb7f5168c33a8d7e1eceaf43aa Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 13 Nov 2024 22:12:06 -0500 Subject: [PATCH] chore: qualify `std::mem::size_of` with `use` (again) --- wgpu-core/src/ray_tracing.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wgpu-core/src/ray_tracing.rs b/wgpu-core/src/ray_tracing.rs index 11ccb714f..f6102b552 100644 --- a/wgpu-core/src/ray_tracing.rs +++ b/wgpu-core/src/ray_tracing.rs @@ -13,7 +13,7 @@ use crate::{ id::{BlasId, BufferId, TlasId}, resource::CreateBufferError, }; -use std::sync::Arc; +use std::{mem::size_of, sync::Arc}; use std::{num::NonZeroU64, slice}; use crate::resource::{Blas, ResourceErrorIdent, Tlas}; @@ -325,11 +325,8 @@ pub(crate) fn tlas_instance_into_bytes( }; let temp: *const _ = &temp; unsafe { - slice::from_raw_parts::( - temp.cast::(), - std::mem::size_of::(), - ) - .to_vec() + slice::from_raw_parts::(temp.cast::(), size_of::()) + .to_vec() } } _ => unimplemented!(),