From 898914b6fbc2d72f9a982d3db0a43209b4a5cb1c Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 12 Aug 2022 10:38:14 +0200 Subject: [PATCH] touch: remove transmute to fix clippy warning --- src/uu/touch/src/touch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/touch/src/touch.rs b/src/uu/touch/src/touch.rs index e8c4fcd2f..3a2fca676 100644 --- a/src/uu/touch/src/touch.rs +++ b/src/uu/touch/src/touch.rs @@ -491,7 +491,7 @@ fn pathbuf_from_stdout() -> UResult { // 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,