From fabc404518bc639c0d84ca499b112b70fc4362b5 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Fri, 15 Dec 2023 11:33:40 +0100 Subject: [PATCH] fix: bound on `ArrayType` implementation for arrays (#123) The `FixedSize` bound was used when arrays were stored in `FixedSizePrimitiveArray`. --- src/array/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/array/mod.rs b/src/array/mod.rs index 5933813a..8399fa3c 100644 --- a/src/array/mod.rs +++ b/src/array/mod.rs @@ -3,7 +3,6 @@ use crate::{ buffer::BufferType, offset::{self, OffsetElement}, - FixedSize, }; use std::collections::VecDeque; @@ -118,7 +117,7 @@ impl_array_type!(Option, FixedSizePrimitiveArray); impl_array_type!((), NullArray<(), false, Buffer>); impl_array_type!(Option<()>, NullArray<(), true, Buffer>); -impl ArrayType for [T; N] { +impl ArrayType for [T; N] { type Array = FixedSizeListArray< N, @@ -127,7 +126,7 @@ impl ArrayType for [T; N] { Buffer, >; } -impl ArrayType for Option<[T; N]> { +impl ArrayType for Option<[T; N]> { type Array = FixedSizeListArray< N,