Skip to content

Commit

Permalink
Fix ArrayType impl for Rust array types
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel committed Nov 10, 2021
1 parent 6ae74be commit c170c3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/array/fixed_size_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ where

impl<T, const N: usize> ArrayType for [T; N]
where
T: Array,
T: ArrayType,
{
type Array = FixedSizeListArray<T, N, false>;
type Array = FixedSizeListArray<<T as ArrayType>::Array, N, false>;
}

impl<T, const N: usize> ArrayType for Option<[T; N]>
where
T: Array,
T: ArrayType,
{
type Array = FixedSizeListArray<T, N, true>;
type Array = FixedSizeListArray<<T as ArrayType>::Array, N, true>;
}

impl<T, U, const N: usize> FromIterator<[U; N]> for FixedSizeListArray<T, N, false>
Expand Down

0 comments on commit c170c3d

Please sign in to comment.