Skip to content

Commit bb70b9e

Browse files
committed
cargo fmt updates
1 parent b433a8c commit bb70b9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/imp_cs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use core::panic::{RefUnwindSafe, UnwindSafe};
22

3-
use portable_atomic::{AtomicBool, Ordering};
43
use critical_section::{CriticalSection, Mutex};
4+
use portable_atomic::{AtomicBool, Ordering};
55

66
use crate::unsync;
77

src/race.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
//! `Acquire` and `Release` have very little performance overhead on most
2020
//! architectures versus `Relaxed`.
2121
22-
#[cfg(feature = "critical-section")]
23-
use portable_atomic as atomic;
2422
#[cfg(not(feature = "critical-section"))]
2523
use core::sync::atomic;
24+
#[cfg(feature = "critical-section")]
25+
use portable_atomic as atomic;
2626

2727
use atomic::{AtomicPtr, AtomicUsize, Ordering};
2828
use core::cell::UnsafeCell;

0 commit comments

Comments
 (0)