Skip to content

Commit

Permalink
Fix typos in Windows implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Jun 20, 2023
1 parent 1df1410 commit 92c7e23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: cargo install cargo-hack
shell: bash

- name: Check Feature
- name: Check Feature Combinations
run: cargo hack check --feature-powerset --no-dev-deps --skip _nightly
shell: bash

Expand Down
3 changes: 1 addition & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#[cfg(windows)]
mod windows_console {
use core::ffi::c_void;
use core::sync::atomic::{AtomicBool, Ordering};

use crate::condition::CachedBool;

Expand Down Expand Up @@ -66,7 +65,7 @@ mod windows_console {
// Try to enable colors on Windows, and try to do it at most once.
pub fn cache_enable() -> bool {
static ENABLED: CachedBool = CachedBool::new();
*ENABLED.get_or_set(enable)
*ENABLED.get_or_init(enable)
}
}

Expand Down

0 comments on commit 92c7e23

Please sign in to comment.