diff options
| author | Chris Denton <christophersdenton@gmail.com> | 2022-08-18 19:08:49 +0100 |
|---|---|---|
| committer | Chris Denton <christophersdenton@gmail.com> | 2022-08-20 04:15:47 +0100 |
| commit | 625e7e9579c25b90384ddc8413fee04019f2cacf (patch) | |
| tree | e88361771c6d01fc383832b1566fc3a4546e5c8f | |
| parent | efd305e0ec1c1f973a5e3d610f268036640d9613 (diff) | |
| download | rust-625e7e9579c25b90384ddc8413fee04019f2cacf.tar.gz rust-625e7e9579c25b90384ddc8413fee04019f2cacf.zip | |
Use const instead of static
| -rw-r--r-- | library/std/src/sys/windows/compat.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/windows/compat.rs b/library/std/src/sys/windows/compat.rs index e2d5e1e881a..9c8ddc3aa1d 100644 --- a/library/std/src/sys/windows/compat.rs +++ b/library/std/src/sys/windows/compat.rs @@ -199,9 +199,9 @@ macro_rules! compat_fn_optional { /// Load all needed functions from "api-ms-win-core-synch-l1-2-0". pub(super) fn load_synch_functions() { fn try_load() -> Option<()> { - static MODULE_NAME: &CStr = ansi_str!("api-ms-win-core-synch-l1-2-0"); - static WAIT_ON_ADDRESS: &CStr = ansi_str!("WaitOnAddress"); - 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"); // Try loading the library and all the required functions. // If any step fails, then they all fail. |
