mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix new clippy warning
This commit is contained in:
+3
-5
@@ -160,11 +160,9 @@ fn get_file_info(file_path: &Path) -> Option<BY_HANDLE_FILE_INFORMATION> {
|
||||
unsafe_code,
|
||||
reason = "There is currently no way to get this data safely"
|
||||
)]
|
||||
unsafe {
|
||||
GetFileInformationByHandle(HANDLE(file.as_raw_handle()), &mut info)
|
||||
.is_ok()
|
||||
.then_some(info)
|
||||
}
|
||||
unsafe { GetFileInformationByHandle(HANDLE(file.as_raw_handle()), &raw mut info) }
|
||||
.is_ok()
|
||||
.then_some(info)
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
|
||||
Reference in New Issue
Block a user