diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-28 21:11:18 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:37 +0100 |
| commit | 2bd70baeb9362050196d431f2801551066e27e59 (patch) | |
| tree | d100c383fbc32fe1d5c008da120eb79bdae696e2 /rtic-channel | |
| parent | bef6c359a0802cb93c7bf0963d0fca7db540f64b (diff) | |
rtic-time: Make Send happy
Diffstat (limited to 'rtic-channel')
| -rw-r--r-- | rtic-channel/src/lib.rs | 2 | ||||
| -rw-r--r-- | rtic-channel/src/wait_queue.rs | 2 |
2 files changed, 1 insertions, 3 deletions
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<T> { _up: PhantomPinned, } -unsafe impl<T> Send for Link<T> {} - impl<T: Clone> Link<T> { const R: Ordering = Ordering::Relaxed; |
