diff --git a/src/windows/find_tools.rs b/src/windows/find_tools.rs index a7be3c32d..8bd11aa37 100644 --- a/src/windows/find_tools.rs +++ b/src/windows/find_tools.rs @@ -269,8 +269,8 @@ mod impl_ { /// /// The function returned cannot be used after the handle is dropped. unsafe fn get_proc_address(&self, name: &[u8]) -> Option { - let symbol = unsafe { GetProcAddress(self.0, name.as_ptr() as _) }; - symbol.map(|symbol| unsafe { mem::transmute_copy(&symbol) }) + let symbol = GetProcAddress(self.0, name.as_ptr() as _); + symbol.map(|symbol| mem::transmute_copy(&symbol)) } }