From f6a0304a06542c748201da344de52a1655ec462b Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 11 Jan 2017 01:17:57 +0000 Subject: [PATCH] Add an impl From<[_; 0]> for ManagedSlice. --- src/slice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slice.rs b/src/slice.rs index b1236fd..3a095e1 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -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 From> for ManagedSlice<'static, T> {