Make IndexVec implement Send and Sync

This commit is contained in:
John Kåre Alsaker 2017-12-03 14:22:23 +01:00
parent aa6065bd70
commit 30a39ac5ce

View File

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