Skip to content

Commit d757fd1

Browse files
committed
Replace cfg(loom) with one that includes the feature flag
1 parent 8daae9c commit d757fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#![forbid(unsafe_code)]
3333
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
3434

35-
#[cfg(not(loom))]
35+
#[cfg(not(all(loom, feature = "loom")))]
3636
use std::sync;
3737

38-
#[cfg(loom)]
38+
#[cfg(all(loom, feature = "loom"))]
3939
use loom::sync;
4040

4141
use std::cell::Cell;

0 commit comments

Comments
 (0)