Add an impl From<[_; 0]> for ManagedSlice.

This commit is contained in:
whitequark 2017-01-11 01:17:57 +00:00
parent 0db16d074f
commit f6a0304a06
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ macro_rules! from_unboxed_slice {
}
#[cfg(any(feature = "use_std", all(feature = "use_alloc", feature = "use_collections")))]
from_unboxed_slice!(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32);
from_unboxed_slice!(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
#[cfg(any(feature = "use_std", feature = "use_collections"))]
impl<T: 'static> From<Vec<T>> for ManagedSlice<'static, T> {