Skip to content

Commit

Permalink
address clippy on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Jul 20, 2024
1 parent 3d3eed9 commit 9b167d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl<T> Symbol<T> {

/// Convert the loaded `Symbol` into a raw pointer.
pub fn as_raw_ptr(self) -> *mut raw::c_void {
return self.pointer
self.pointer
.map(|raw| raw as *mut raw::c_void)
.unwrap_or(std::ptr::null_mut())
}
Expand Down

0 comments on commit 9b167d6

Please sign in to comment.