Skip to content

Commit 36c0f51

Browse files
committed
Clippy
1 parent 7ecb3b8 commit 36c0f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgpu-hal/src/metal/device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use parking_lot::Mutex;
22
use std::{
3-
ptr::{self, NonNull},
3+
ptr::NonNull,
44
sync::{atomic, Arc},
55
thread, time,
66
};
@@ -385,7 +385,7 @@ impl crate::Device for super::Device {
385385
let ptr = buffer.raw.contents().cast::<u8>();
386386
assert!(!ptr.is_null());
387387
Ok(crate::BufferMapping {
388-
ptr: ptr::NonNull::new(unsafe { ptr.offset(range.start as isize) }).unwrap(),
388+
ptr: NonNull::new(unsafe { ptr.offset(range.start as isize) }).unwrap(),
389389
is_coherent: true,
390390
})
391391
}

0 commit comments

Comments
 (0)