stdx: ...and this cast is now unnecessary
This commit is contained in:
parent
7d017d8fd6
commit
0929704699
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ mod imp {
|
|||
|
||||
pub fn hardlink_count(p: &Path) -> std::io::Result<u64> {
|
||||
let file = std::fs::File::open(p)?;
|
||||
let handle = file.as_raw_handle() as isize;
|
||||
let handle = file.as_raw_handle();
|
||||
let mut info: BY_HANDLE_FILE_INFORMATION = unsafe { std::mem::zeroed() };
|
||||
|
||||
if unsafe { GetFileInformationByHandle(handle, &mut info) } == 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue