Fix variance of thread::Scope.
This commit is contained in:
@@ -11,7 +11,7 @@ use crate::sync::Arc;
|
|||||||
/// See [`scope`] for details.
|
/// See [`scope`] for details.
|
||||||
pub struct Scope<'env> {
|
pub struct Scope<'env> {
|
||||||
data: ScopeData,
|
data: ScopeData,
|
||||||
env: PhantomData<&'env ()>,
|
env: PhantomData<&'env mut &'env ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An owned permission to join on a scoped thread (block on its termination).
|
/// An owned permission to join on a scoped thread (block on its termination).
|
||||||
|
|||||||
Reference in New Issue
Block a user