mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-05 00:57:24 +00:00
Remove unnecessary unsafe block (#426)
This commit is contained in:
parent
f5712d9d5a
commit
72e2fe5b9a
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ fn get_ptx_from_wrapped_fatbin(image: *const ::core::ffi::c_void) -> Result<Vec<
|
|||
let fatbin = Fatbin::new(&image).map_err(|_| CUerror::UNKNOWN)?;
|
||||
let mut submodules = fatbin.get_submodules().map_err(|_| CUerror::UNKNOWN)?;
|
||||
|
||||
while let Some(current) = unsafe { submodules.next().map_err(|_| CUerror::UNKNOWN)? } {
|
||||
while let Some(current) = submodules.next().map_err(|_| CUerror::UNKNOWN)? {
|
||||
let mut files = current.get_files();
|
||||
while let Some(file) = unsafe { files.next().map_err(|_| CUerror::UNKNOWN)? } {
|
||||
if file.header.kind == FatbinFileHeader::HEADER_KIND_PTX {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue