@@ -225,15 +225,15 @@ macro_rules! for_all_variants {
225
225
( $macro: tt $( , $x: tt) * ) => {
226
226
$macro! {
227
227
[ $( $x) ,* ] ,
228
- { Int32 , int32 , I32Array , I32ArrayBuilder , Int32 , Int32 } ,
229
- { Int64 , int64 , I64Array , I64ArrayBuilder , Int64 , Int64 } ,
230
- { Float64 , float64 , F64Array , F64ArrayBuilder , Float64 , Float64 } ,
231
- { Utf8 , utf8 , Utf8Array , Utf8ArrayBuilder , String , String } ,
232
- { Blob , blob , BlobArray , BlobArrayBuilder , Blob , Blob } ,
233
- { Bool , bool , BoolArray , BoolArrayBuilder , Bool , Bool } ,
234
- { Decimal , decimal , DecimalArray , DecimalArrayBuilder , Decimal , Decimal ( _ , _ ) } ,
235
- { Date , date , DateArray , DateArrayBuilder , Date , Date } ,
236
- { Interval , interval , IntervalArray , IntervalArrayBuilder , Interval , Interval }
228
+ { Bool , bool , bool , BoolArray , BoolArrayBuilder , Bool , Bool } ,
229
+ { Int32 , i32 , int32 , I32Array , I32ArrayBuilder , Int32 , Int32 } ,
230
+ { Int64 , i64 , int64 , I64Array , I64ArrayBuilder , Int64 , Int64 } ,
231
+ { Float64 , F64 , float64 , F64Array , F64ArrayBuilder , Float64 , Float64 } ,
232
+ { Decimal , Decimal , decimal , DecimalArray , DecimalArrayBuilder , Decimal , Decimal ( _ , _ ) } ,
233
+ { Date , Date , date , DateArray , DateArrayBuilder , Date , Date } ,
234
+ { Interval , Interval , interval , IntervalArray , IntervalArrayBuilder , Interval , Interval } ,
235
+ { Utf8 , str , utf8 , Utf8Array , Utf8ArrayBuilder , String , String } ,
236
+ { Blob , BlobRef , blob , BlobArray , BlobArrayBuilder , Blob , Blob }
237
237
}
238
238
} ;
239
239
}
@@ -244,7 +244,7 @@ pub struct TypeMismatch;
244
244
245
245
/// Implement `From` and `TryFrom` between conversions of concrete array types and enum sum type.
246
246
macro_rules! impl_from {
247
- ( [ ] , $( { $Abc: ident, $abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Type : pat } ) ,* ) => {
247
+ ( [ ] , $( { $Abc: ident, $Type : ty , $ abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Pattern : pat } ) ,* ) => {
248
248
$(
249
249
/// Implement `AbcArray -> ArrayImpl`
250
250
impl From <$AbcArray> for ArrayImpl {
@@ -315,7 +315,7 @@ for_all_variants! { impl_from }
315
315
316
316
/// Implement dispatch functions for `ArrayBuilderImpl`.
317
317
macro_rules! impl_array_builder {
318
- ( [ ] , $( { $Abc: ident, $abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Type : pat } ) ,* ) => {
318
+ ( [ ] , $( { $Abc: ident, $Type : ty , $ abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Pattern : pat } ) ,* ) => {
319
319
impl ArrayBuilderImpl {
320
320
/// Reserve at least `capacity` values.
321
321
pub fn reserve( & mut self , capacity: usize ) {
@@ -342,7 +342,7 @@ macro_rules! impl_array_builder {
342
342
Null => Self :: Int32 ( I32ArrayBuilder :: with_capacity( capacity) ) ,
343
343
Struct ( _) => todo!( "array of Struct type" ) ,
344
344
$(
345
- $Type => Self :: $Abc( <$AbcArrayBuilder>:: with_capacity( capacity) ) ,
345
+ $Pattern => Self :: $Abc( <$AbcArrayBuilder>:: with_capacity( capacity) ) ,
346
346
) *
347
347
}
348
348
}
@@ -444,7 +444,7 @@ impl ArrayBuilderImpl {
444
444
445
445
/// Implement dispatch functions for `ArrayImpl`.
446
446
macro_rules! impl_array {
447
- ( [ ] , $( { $Abc: ident, $abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Type : pat } ) ,* ) => {
447
+ ( [ ] , $( { $Abc: ident, $Type : ty , $ abc: ident, $AbcArray: ty, $AbcArrayBuilder: ty, $Value: ident, $Pattern : pat } ) ,* ) => {
448
448
impl ArrayImpl {
449
449
$(
450
450
paste! {
0 commit comments