summaryrefslogtreecommitdiff
path: root/tests/evil_rwlock.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-13 15:12:08 -0400
committerMica White <botahamec@outlook.com>2026-09-13 15:12:08 -0400
commit16d6bd7ece4c4b9b72f6bd51c9b034270b745525 (patch)
tree4ff744fc41319ce73abe06416fabeaa7c17fbd46 /tests/evil_rwlock.rs
parent9fd7b94cd7c20abe66cea875a0e83e76a7a00fbc (diff)
Support no_stdno-std
Diffstat (limited to 'tests/evil_rwlock.rs')
-rwxr-xr-xtests/evil_rwlock.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/evil_rwlock.rs b/tests/evil_rwlock.rs
index a57a27a..679928b 100755
--- a/tests/evil_rwlock.rs
+++ b/tests/evil_rwlock.rs
@@ -1,10 +1,11 @@
-use std::panic::AssertUnwindSafe;
-use std::sync::Arc;
+#![cfg(feature = "std")]
use happylock::collection::{BoxedLockCollection, RetryingLockCollection};
use happylock::rwlock::RwLock;
use happylock::ThreadKey;
use lock_api::{GuardNoSend, RawRwLock};
+use std::panic::AssertUnwindSafe;
+use std::sync::Arc;
struct EvilRwLock {
inner: parking_lot::RawRwLock,