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 292f469 commit 5c73b57
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 5c73b57

Please sign in to comment.