Impl `Send` and `Sync` for `Array`

next
Sayan Nandan 3 years ago
parent 0067b7d1b7
commit 4a27f83e6b

@ -435,6 +435,9 @@ where
} }
} }
unsafe impl<T, const N: usize> Send for Array<T, N> where T: Send {}
unsafe impl<T, const N: usize> Sync for Array<T, N> where T: Sync {}
#[test] #[test]
fn test_basic() { fn test_basic() {
let mut b: Array<u8, 11> = Array::new(); let mut b: Array<u8, 11> = Array::new();

Loading…
Cancel
Save