From c0d848a83bd84f6545da5f5b23d7b45131634628 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 11 Jul 2025 16:49:58 +0100 Subject: [PATCH] Fix new clippy warning --- src/archive/find.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/archive/find.rs b/src/archive/find.rs index 700a7c42..083d4a97 100644 --- a/src/archive/find.rs +++ b/src/archive/find.rs @@ -160,11 +160,9 @@ fn get_file_info(file_path: &Path) -> Option { unsafe_code, reason = "There is currently no way to get this data safely" )] - unsafe { - GetFileInformationByHandle(HANDLE(file.as_raw_handle()), &mut info) - .is_ok() - .then_some(info) - } + unsafe { GetFileInformationByHandle(HANDLE(file.as_raw_handle()), &raw mut info) } + .is_ok() + .then_some(info) } #[cfg(not(windows))]