From db9bc8d71b172a7817f9ba7e7d88cec2e90f42fd Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Fri, 28 Jan 2022 23:58:07 +0000 Subject: [PATCH] Fix arrow prettyprint clippy lint --- arrow/src/util/pretty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arrow/src/util/pretty.rs b/arrow/src/util/pretty.rs index 91343ec0f161..c654fbcd3be4 100644 --- a/arrow/src/util/pretty.rs +++ b/arrow/src/util/pretty.rs @@ -74,7 +74,7 @@ fn create_table(results: &[RecordBatch]) -> Result { let mut cells = Vec::new(); for col in 0..batch.num_columns() { let column = batch.column(col); - cells.push(Cell::new(&array_value_to_string(&column, row)?)); + cells.push(Cell::new(&array_value_to_string(column, row)?)); } table.add_row(cells); } @@ -96,7 +96,7 @@ fn create_column(field: &str, columns: &[ArrayRef]) -> Result
{ for col in columns { for row in 0..col.len() { - let cells = vec![Cell::new(&array_value_to_string(&col, row)?)]; + let cells = vec![Cell::new(&array_value_to_string(col, row)?)]; table.add_row(cells); } }