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();