rtic-time: Make Send happy

This commit is contained in:
Emil Fresk 2023-01-28 21:11:18 +01:00 committed by Henrik Tjäder
parent bef6c359a0
commit 2bd70baeb9
3 changed files with 26 additions and 6 deletions

View file

@ -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);

View file

@ -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;