Skip to content

Commit 625e7e9

Browse files
committed
Use const instead of static
1 parent efd305e commit 625e7e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/sys/windows/compat.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ macro_rules! compat_fn_optional {
199199
/// Load all needed functions from "api-ms-win-core-synch-l1-2-0".
200200
pub(super) fn load_synch_functions() {
201201
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");
202+
const MODULE_NAME: &CStr = ansi_str!("api-ms-win-core-synch-l1-2-0");
203+
const WAIT_ON_ADDRESS: &CStr = ansi_str!("WaitOnAddress");
204+
const WAKE_BY_ADDRESS_SINGLE: &CStr = ansi_str!("WakeByAddressSingle");
205205

206206
// Try loading the library and all the required functions.
207207
// If any step fails, then they all fail.

0 commit comments

Comments
 (0)