Skip to content

Commit

Permalink
Replace cfg(loom) with one that includes the feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Oct 3, 2022
1 parent 8daae9c commit d757fd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#![forbid(unsafe_code)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]

#[cfg(not(loom))]
#[cfg(not(all(loom, feature = "loom")))]
use std::sync;

#[cfg(loom)]
#[cfg(all(loom, feature = "loom"))]
use loom::sync;

use std::cell::Cell;
Expand Down

0 comments on commit d757fd1

Please sign in to comment.