Skip to content

Commit

Permalink
Fix clippy warning on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <[email protected]>
  • Loading branch information
NobodyXu committed Jul 7, 2024
1 parent 4677e28 commit 29d185b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/find_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ mod impl_ {
///
/// The function returned cannot be used after the handle is dropped.
unsafe fn get_proc_address<F>(&self, name: &[u8]) -> Option<F> {
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))
}
}

Expand Down

0 comments on commit 29d185b

Please sign in to comment.