Make Producer<..., SingleCore> Send, like Consumer

I assume there's no reason that only multi-core Producers are marked
Send, while Consumers are not (they're pretty symmetrical).
This commit is contained in:
Bryan Kadzban 2020-04-11 21:23:57 -07:00 committed by Emil Fresk
parent 357a312dba
commit 87917e059b

View File

@ -61,11 +61,12 @@ where
_marker: PhantomData<&'a ()>,
}
unsafe impl<'a, T, N, U> Send for Producer<'a, T, N, U>
unsafe impl<'a, T, N, U, C> Send for Producer<'a, T, N, U, C>
where
N: ArrayLength<T>,
T: Send,
U: sealed::Uxx,
C: sealed::XCore,
{
}