summaryrefslogtreecommitdiffstats
path: root/tokio/tests
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-05-06 07:37:44 -0700
committerGitHub <noreply@github.com>2020-05-06 07:37:44 -0700
commitcc8a6625982b5fc0694d05b4e9fb7d6a592702a1 (patch)
tree5f946da38fb9931f08998f0eb472828757ad3a8e /tokio/tests
parent264ae3bdb22004609de45b67e2890081bb47e5b2 (diff)
sync: simplify the broadcast channel (#2467)
Replace an ad hoc read/write lock with RwLock. Use The parking_lot RwLock when possible.
Diffstat (limited to 'tokio/tests')
-rw-r--r--tokio/tests/sync_broadcast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/sync_broadcast.rs b/tokio/tests/sync_broadcast.rs
index 4fb7c0aa..4d756f91 100644
--- a/tokio/tests/sync_broadcast.rs
+++ b/tokio/tests/sync_broadcast.rs
@@ -49,7 +49,7 @@ macro_rules! assert_closed {
};
}
-trait AssertSend: Send {}
+trait AssertSend: Send + Sync {}
impl AssertSend for broadcast::Sender<i32> {}
impl AssertSend for broadcast::Receiver<i32> {}