touch: remove transmute to fix clippy warning

This commit is contained in:
Daniel Hofstetter 2022-08-12 10:38:14 +02:00
parent dd19f85d2b
commit 898914b6fb

View file

@ -491,7 +491,7 @@ fn pathbuf_from_stdout() -> UResult<PathBuf> {
// to a u32.
let ret = unsafe {
GetFinalPathNameByHandleW(
std::mem::transmute(handle),
handle,
file_path_buffer.as_mut_ptr(),
file_path_buffer.len() as u32,
FILE_NAME_OPENED,