Skip to content

Commit

Permalink
cargo fmt updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brodycj committed Sep 13, 2024
1 parent b433a8c commit bb70b9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/imp_cs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::panic::{RefUnwindSafe, UnwindSafe};

use portable_atomic::{AtomicBool, Ordering};
use critical_section::{CriticalSection, Mutex};
use portable_atomic::{AtomicBool, Ordering};

use crate::unsync;

Expand Down
4 changes: 2 additions & 2 deletions src/race.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
//! `Acquire` and `Release` have very little performance overhead on most
//! architectures versus `Relaxed`.

#[cfg(feature = "critical-section")]
use portable_atomic as atomic;
#[cfg(not(feature = "critical-section"))]
use core::sync::atomic;
#[cfg(feature = "critical-section")]
use portable_atomic as atomic;

use atomic::{AtomicPtr, AtomicUsize, Ordering};
use core::cell::UnsafeCell;
Expand Down

0 comments on commit bb70b9e

Please # to comment.