From d757fd126044f4ee66ae55b091e43b507f453587 Mon Sep 17 00:00:00 2001 From: jtnunley Date: Mon, 3 Oct 2022 13:15:33 -0700 Subject: [PATCH] Replace cfg(loom) with one that includes the feature flag --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 18b5915..5a35182 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;