From 2bd70baeb9362050196d431f2801551066e27e59 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sat, 28 Jan 2023 21:11:18 +0100 Subject: rtic-time: Make Send happy --- rtic-channel/src/lib.rs | 2 +- rtic-channel/src/wait_queue.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'rtic-channel/src') diff --git a/rtic-channel/src/lib.rs b/rtic-channel/src/lib.rs index eafa25c..acfa801 100644 --- a/rtic-channel/src/lib.rs +++ b/rtic-channel/src/lib.rs @@ -532,7 +532,7 @@ mod tests { #[tokio::test] async fn stress_channel() { - const NUM_RUNS: usize = 1_000000; + const NUM_RUNS: usize = 1_000; const QUEUE_SIZE: usize = 10; let (s, mut r) = make_channel!(u32, QUEUE_SIZE); diff --git a/rtic-channel/src/wait_queue.rs b/rtic-channel/src/wait_queue.rs index e6d5a8b..2de6311 100644 --- a/rtic-channel/src/wait_queue.rs +++ b/rtic-channel/src/wait_queue.rs @@ -105,8 +105,6 @@ pub struct Link { _up: PhantomPinned, } -unsafe impl Send for Link {} - impl Link { const R: Ordering = Ordering::Relaxed; -- cgit v1.2.3