@@ -668,9 +668,12 @@ impl FlightIpcEncoder {
668668 /// Convert a `RecordBatch` to a Vec of `FlightData` representing
669669 /// dictionaries and a `FlightData` representing the batch
670670 fn encode_batch ( & mut self , batch : & RecordBatch ) -> Result < ( Vec < FlightData > , FlightData ) > {
671- let ( encoded_dictionaries, encoded_batch) =
672- self . data_gen
673- . encoded_batch ( batch, & mut self . dictionary_tracker , & self . options , & mut self . compression_context ) ?;
671+ let ( encoded_dictionaries, encoded_batch) = self . data_gen . encoded_batch (
672+ batch,
673+ & mut self . dictionary_tracker ,
674+ & self . options ,
675+ & mut self . compression_context ,
676+ ) ?;
674677
675678 let flight_dictionaries = encoded_dictionaries. into_iter ( ) . map ( Into :: into) . collect ( ) ;
676679 let flight_batch = encoded_batch. into ( ) ;
@@ -1601,7 +1604,12 @@ mod tests {
16011604 let mut compression_context = CompressionContext :: default ( ) ;
16021605
16031606 let ( encoded_dictionaries, encoded_batch) = data_gen
1604- . encoded_batch ( batch, & mut dictionary_tracker, options, & mut compression_context)
1607+ . encoded_batch (
1608+ batch,
1609+ & mut dictionary_tracker,
1610+ options,
1611+ & mut compression_context,
1612+ )
16051613 . expect ( "DictionaryTracker configured above to not error on replacement" ) ;
16061614
16071615 let flight_dictionaries = encoded_dictionaries. into_iter ( ) . map ( Into :: into) . collect ( ) ;
0 commit comments