about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2022-08-18 19:08:49 +0100
committerChris Denton <christophersdenton@gmail.com>2022-08-20 04:15:47 +0100
commit625e7e9579c25b90384ddc8413fee04019f2cacf (patch)
treee88361771c6d01fc383832b1566fc3a4546e5c8f
parentefd305e0ec1c1f973a5e3d610f268036640d9613 (diff)
downloadrust-625e7e9579c25b90384ddc8413fee04019f2cacf.tar.gz
rust-625e7e9579c25b90384ddc8413fee04019f2cacf.zip
Use const instead of static
-rw-r--r--library/std/src/sys/windows/compat.rs6
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.