Skip to content

Commit

Permalink
chore: remove duplicate PCSTR (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Mar 27, 2024
1 parent 9ecac81 commit 2d0a2d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/platform_impl/windows/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ impl CursorIcon {
pub(super) fn get_function_impl(library: &str, function: &str) -> FARPROC {
let library = encode_wide(library);
assert_eq!(function.chars().last(), Some('\0'));
let function = PCSTR::from_raw(function.as_ptr());

// Library names we will use are ASCII so we can use the A version to avoid string conversion.
let module = unsafe { LoadLibraryW(PCWSTR::from_raw(library.as_ptr())) }.unwrap_or_default();
Expand Down

0 comments on commit 2d0a2d7

Please sign in to comment.