mirror of
https://github.com/uutils/coreutils
synced 2025-01-05 17:59:00 +00:00
touch: remove transmute to fix clippy warning
This commit is contained in:
parent
dd19f85d2b
commit
898914b6fb
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ fn pathbuf_from_stdout() -> UResult<PathBuf> {
|
||||||
// to a u32.
|
// to a u32.
|
||||||
let ret = unsafe {
|
let ret = unsafe {
|
||||||
GetFinalPathNameByHandleW(
|
GetFinalPathNameByHandleW(
|
||||||
std::mem::transmute(handle),
|
handle,
|
||||||
file_path_buffer.as_mut_ptr(),
|
file_path_buffer.as_mut_ptr(),
|
||||||
file_path_buffer.len() as u32,
|
file_path_buffer.len() as u32,
|
||||||
FILE_NAME_OPENED,
|
FILE_NAME_OPENED,
|
||||||
|
|
Loading…
Reference in a new issue