Skip to content

Commit 5c3381b

Browse files
committed
Fix more clippy
1 parent 6f2435a commit 5c3381b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/cust/src/device.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ impl Device {
352352
unsafe {
353353
driver_sys::cuDeviceGetUuid(&mut cu_uuid, self.device).to_result()?;
354354
}
355-
let uuid: [u8; 16] = cu_uuid.bytes;
355+
#[allow(clippy::unnecessary_cast)]
356+
let uuid: [u8; 16] = cu_uuid.bytes.map(|byte| byte as u8);
356357
Ok(uuid)
357358
}
358359

0 commit comments

Comments
 (0)