Skip to content

Commit

Permalink
Use const instead of static
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 20, 2022
1 parent efd305e commit 625e7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/sys/windows/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 625e7e9

Please sign in to comment.