diff options
| author | ltdk <usr@ltdk.xyz> | 2025-07-17 23:28:24 -0400 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2025-08-12 16:57:56 -0400 |
| commit | d6945f6d8c15bd692000cd7f8d76d171ae27b8c9 (patch) | |
| tree | 65fef144957515a790effa8afe8cb42df17a357b /library/std/src/sys/fs | |
| parent | 8e62bfd311791bfd9dca886abdfbab07ec54d8b4 (diff) | |
Add cast_init and cast_uninit methods for pointers
Diffstat (limited to 'library/std/src/sys/fs')
| -rw-r--r-- | library/std/src/sys/fs/windows.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/fs/windows.rs b/library/std/src/sys/fs/windows.rs index 09feddd0be9..bb3e4bc30ca 100644 --- a/library/std/src/sys/fs/windows.rs +++ b/library/std/src/sys/fs/windows.rs @@ -1606,7 +1606,7 @@ pub fn junction_point(original: &Path, link: &Path) -> io::Result<()> { }; unsafe { let ptr = header.PathBuffer.as_mut_ptr(); - ptr.copy_from(abs_path.as_ptr().cast::<MaybeUninit<u16>>(), abs_path.len()); + ptr.copy_from(abs_path.as_ptr().cast_uninit(), abs_path.len()); let mut ret = 0; cvt(c::DeviceIoControl( |
