Skip to content

Commit 21af6f5

Browse files
Remove use of the "std" feature from pool.rs
This feature does not exist in rust-pcre2.
1 parent a064b97 commit 21af6f5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/pool.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,6 @@ mod tests {
687687
// Tests that Pool implements the "single owner" optimization. That is, the
688688
// thread that first accesses the pool gets its own copy, while all other
689689
// threads get distinct copies.
690-
#[cfg(feature = "std")]
691690
#[test]
692691
fn thread_owner_optimization() {
693692
use std::{cell::RefCell, sync::Arc, vec};
@@ -753,7 +752,6 @@ mod tests {
753752
// developing a pool since the pool permitted 'get()' to return the same
754753
// value to the owner thread, even before the previous value was put back
755754
// into the pool. This in turn resulted in this test producing a data race.
756-
#[cfg(feature = "std")]
757755
#[test]
758756
fn thread_owner_sync() {
759757
let pool = Pool::new(|| vec!['a']);
@@ -788,7 +786,6 @@ mod tests {
788786
// PoolGuard assumed it was dropped in the same thread from which it was
789787
// created, and thus used the current thread's ID as the owner, which could
790788
// be different than the actual owner of the pool.
791-
#[cfg(feature = "std")]
792789
#[test]
793790
fn thread_owner_send_drop() {
794791
let pool = Pool::new(|| vec!['a']);

0 commit comments

Comments
 (0)