Unnamed repository; edit this file 'description' to name the repository.
stdx: ...and this cast is now unnecessary
Blaž Hrastnik 2024-08-07
parent 7d017d8 · commit 0929704
-rw-r--r--helix-stdx/src/faccess.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-stdx/src/faccess.rs b/helix-stdx/src/faccess.rs
index d4224bb9..e4c3daf2 100644
--- a/helix-stdx/src/faccess.rs
+++ b/helix-stdx/src/faccess.rs
@@ -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 {