@@ -78,12 +78,12 @@ pub fn create(target: &Path, junction: &Path) -> io::Result<()> {
7878 size. wrapping_add ( c:: REPARSE_DATA_BUFFER_HEADER_SIZE )
7979 } ;
8080
81- helpers:: set_reparse_point ( file. as_raw_handle ( ) as isize , rdb, u32:: from ( in_buffer_size) )
81+ helpers:: set_reparse_point ( file. as_raw_handle ( ) , rdb, u32:: from ( in_buffer_size) )
8282}
8383
8484pub fn delete ( junction : & Path ) -> io:: Result < ( ) > {
8585 let file = helpers:: open_reparse_point ( junction, true ) ?;
86- helpers:: delete_reparse_point ( file. as_raw_handle ( ) as isize )
86+ helpers:: delete_reparse_point ( file. as_raw_handle ( ) )
8787}
8888
8989pub fn exists ( junction : & Path ) -> io:: Result < bool > {
@@ -95,7 +95,7 @@ pub fn exists(junction: &Path) -> io::Result<bool> {
9595 let mut data = BytesAsReparseDataBuffer :: new ( ) ;
9696 // XXX: Could also use FindFirstFile to read the reparse point type
9797 // Ref https://learn.microsoft.com/en-us/windows/win32/fileio/reparse-point-tags
98- helpers:: get_reparse_data_point ( file. as_raw_handle ( ) as isize , data. as_mut_ptr ( ) ) ?;
98+ helpers:: get_reparse_data_point ( file. as_raw_handle ( ) , data. as_mut_ptr ( ) ) ?;
9999 // SATETY: rdb should be initialized now
100100 let rdb = unsafe { data. assume_init ( ) } ;
101101 // The reparse tag indicates if this is a junction or not
@@ -109,7 +109,7 @@ pub fn get_target(junction: &Path) -> io::Result<PathBuf> {
109109 }
110110 let file = helpers:: open_reparse_point ( junction, false ) ?;
111111 let mut data = BytesAsReparseDataBuffer :: new ( ) ;
112- helpers:: get_reparse_data_point ( file. as_raw_handle ( ) as isize , data. as_mut_ptr ( ) ) ?;
112+ helpers:: get_reparse_data_point ( file. as_raw_handle ( ) , data. as_mut_ptr ( ) ) ?;
113113 // SAFETY: rdb should be initialized now
114114 let rdb = unsafe { data. assume_init ( ) } ;
115115 if rdb. ReparseTag == c:: IO_REPARSE_TAG_MOUNT_POINT {
0 commit comments