Make IndexVec implement Send and Sync
This commit is contained in:
parent
aa6065bd70
commit
30a39ac5ce
@ -327,7 +327,7 @@ macro_rules! newtype_index {
|
||||
#[derive(Clone, PartialEq, Eq)]
|
||||
pub struct IndexVec<I: Idx, T> {
|
||||
pub raw: Vec<T>,
|
||||
_marker: PhantomData<Fn(&I)>
|
||||
_marker: PhantomData<fn(&I)>
|
||||
}
|
||||
|
||||
// Whether `IndexVec` is `Send` depends only on the data,
|
||||
|
Loading…
Reference in New Issue
Block a user