We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c8b356 commit f71124bCopy full SHA for f71124b
1 file changed
crates/cust/src/device.rs
@@ -352,6 +352,7 @@ impl Device {
352
unsafe {
353
driver_sys::cuDeviceGetUuid(&mut cu_uuid, self.device).to_result()?;
354
}
355
+ #[allow(clippy::unnecessary_cast)]
356
let uuid: [u8; 16] = cu_uuid.bytes.map(|byte| byte as u8);
357
Ok(uuid)
358
0 commit comments