@@ -259,7 +259,7 @@ mod tests {
259259 fn print_csv_no_header ( ) {
260260 let output = PrintBatchesTest :: new ( )
261261 . with_format ( PrintFormat :: Csv )
262- . with_batches ( split_batch ( three_column_batch ( ) ) )
262+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
263263 . with_header ( WithHeader :: No )
264264 . run ( ) ;
265265 assert_snapshot ! ( output, @r"
@@ -273,7 +273,7 @@ mod tests {
273273 fn print_csv_with_header ( ) {
274274 let output = PrintBatchesTest :: new ( )
275275 . with_format ( PrintFormat :: Csv )
276- . with_batches ( split_batch ( three_column_batch ( ) ) )
276+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
277277 . with_header ( WithHeader :: Yes )
278278 . run ( ) ;
279279 assert_snapshot ! ( output, @r"
@@ -288,7 +288,7 @@ mod tests {
288288 fn print_tsv_no_header ( ) {
289289 let output = PrintBatchesTest :: new ( )
290290 . with_format ( PrintFormat :: Tsv )
291- . with_batches ( split_batch ( three_column_batch ( ) ) )
291+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
292292 . with_header ( WithHeader :: No )
293293 . run ( ) ;
294294 assert_snapshot ! ( output, @r"
@@ -302,7 +302,7 @@ mod tests {
302302 fn print_tsv_with_header ( ) {
303303 let output = PrintBatchesTest :: new ( )
304304 . with_format ( PrintFormat :: Tsv )
305- . with_batches ( split_batch ( three_column_batch ( ) ) )
305+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
306306 . with_header ( WithHeader :: Yes )
307307 . run ( ) ;
308308 assert_snapshot ! ( output, @r"
@@ -317,7 +317,7 @@ mod tests {
317317 fn print_table ( ) {
318318 let output = PrintBatchesTest :: new ( )
319319 . with_format ( PrintFormat :: Table )
320- . with_batches ( split_batch ( three_column_batch ( ) ) )
320+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
321321 . with_header ( WithHeader :: Ignored )
322322 . run ( ) ;
323323 assert_snapshot ! ( output, @r"
@@ -334,7 +334,7 @@ mod tests {
334334 fn print_json ( ) {
335335 let output = PrintBatchesTest :: new ( )
336336 . with_format ( PrintFormat :: Json )
337- . with_batches ( split_batch ( three_column_batch ( ) ) )
337+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
338338 . with_header ( WithHeader :: Ignored )
339339 . run ( ) ;
340340 assert_snapshot ! ( output, @r#"[{"a":1,"b":4,"c":7},{"a":2,"b":5,"c":8},{"a":3,"b":6,"c":9}]"# ) ;
@@ -344,7 +344,7 @@ mod tests {
344344 fn print_ndjson ( ) {
345345 let output = PrintBatchesTest :: new ( )
346346 . with_format ( PrintFormat :: NdJson )
347- . with_batches ( split_batch ( three_column_batch ( ) ) )
347+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
348348 . with_header ( WithHeader :: Ignored )
349349 . run ( ) ;
350350 assert_snapshot ! ( output, @r#"
@@ -358,7 +358,7 @@ mod tests {
358358 fn print_automatic_no_header ( ) {
359359 let output = PrintBatchesTest :: new ( )
360360 . with_format ( PrintFormat :: Automatic )
361- . with_batches ( split_batch ( three_column_batch ( ) ) )
361+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
362362 . with_header ( WithHeader :: No )
363363 . run ( ) ;
364364 assert_snapshot ! ( output, @r"
@@ -371,7 +371,7 @@ mod tests {
371371 fn print_automatic_with_header ( ) {
372372 let output = PrintBatchesTest :: new ( )
373373 . with_format ( PrintFormat :: Automatic )
374- . with_batches ( split_batch ( three_column_batch ( ) ) )
374+ . with_batches ( split_batch ( & three_column_batch ( ) ) )
375375 . with_header ( WithHeader :: Yes )
376376 . run ( ) ;
377377 assert_snapshot ! ( output, @r"
@@ -633,7 +633,7 @@ mod tests {
633633 }
634634
635635 /// Slice the record batch into 2 batches
636- fn split_batch ( batch : RecordBatch ) -> Vec < RecordBatch > {
636+ fn split_batch ( batch : & RecordBatch ) -> Vec < RecordBatch > {
637637 assert ! ( batch. num_rows( ) > 1 ) ;
638638 let split = batch. num_rows ( ) / 2 ;
639639 vec ! [
0 commit comments