We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60d19e commit 42cea98Copy full SHA for 42cea98
std/src/sys/windows/compat.rs
@@ -199,9 +199,9 @@ macro_rules! compat_fn_optional {
199
/// Load all needed functions from "api-ms-win-core-synch-l1-2-0".
200
pub(super) fn load_synch_functions() {
201
fn try_load() -> Option<()> {
202
- static MODULE_NAME: &CStr = ansi_str!("api-ms-win-core-synch-l1-2-0");
203
- static WAIT_ON_ADDRESS: &CStr = ansi_str!("WaitOnAddress");
204
- static WAKE_BY_ADDRESS_SINGLE: &CStr = ansi_str!("WakeByAddressSingle");
+ const MODULE_NAME: &CStr = ansi_str!("api-ms-win-core-synch-l1-2-0");
+ const WAIT_ON_ADDRESS: &CStr = ansi_str!("WaitOnAddress");
+ const WAKE_BY_ADDRESS_SINGLE: &CStr = ansi_str!("WakeByAddressSingle");
205
206
// Try loading the library and all the required functions.
207
// If any step fails, then they all fail.
0 commit comments