We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ecb3b8 commit 36c0f51Copy full SHA for 36c0f51
wgpu-hal/src/metal/device.rs
@@ -1,6 +1,6 @@
1
use parking_lot::Mutex;
2
use std::{
3
- ptr::{self, NonNull},
+ ptr::NonNull,
4
sync::{atomic, Arc},
5
thread, time,
6
};
@@ -385,7 +385,7 @@ impl crate::Device for super::Device {
385
let ptr = buffer.raw.contents().cast::<u8>();
386
assert!(!ptr.is_null());
387
Ok(crate::BufferMapping {
388
- ptr: ptr::NonNull::new(unsafe { ptr.offset(range.start as isize) }).unwrap(),
+ ptr: NonNull::new(unsafe { ptr.offset(range.start as isize) }).unwrap(),
389
is_coherent: true,
390
})
391
}
0 commit comments