From 2d0a2d781d997207a1f82d6bbc4fe0237ba5cb75 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 27 Mar 2024 04:10:25 +0200 Subject: [PATCH] chore: remove duplicate PCSTR (#897) --- src/platform_impl/windows/util.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform_impl/windows/util.rs b/src/platform_impl/windows/util.rs index 6c65c1614..0a5b3954e 100644 --- a/src/platform_impl/windows/util.rs +++ b/src/platform_impl/windows/util.rs @@ -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();