From d365329d30765c5dd04e95d18a1bf5f355604d7b Mon Sep 17 00:00:00 2001 From: Josh Wiley Date: Thu, 18 Apr 2024 08:53:11 -0700 Subject: [PATCH] fix(parquet): clippy --- parquet/src/arrow/arrow_writer/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/parquet/src/arrow/arrow_writer/mod.rs b/parquet/src/arrow/arrow_writer/mod.rs index 9fc70c3e6ed7..414ce3c6982a 100644 --- a/parquet/src/arrow/arrow_writer/mod.rs +++ b/parquet/src/arrow/arrow_writer/mod.rs @@ -2002,7 +2002,7 @@ mod tests { use chrono::NaiveDate; let epoch = NaiveDate::from_ymd_opt(1970, 1, 1).unwrap(); - let dates = vec![ + let dates = [ NaiveDate::from_ymd_opt(1915, 11, 25).unwrap(), NaiveDate::from_ymd_opt(1964, 4, 8).unwrap(), NaiveDate::from_ymd_opt(1992, 9, 2).unwrap(), @@ -2033,7 +2033,7 @@ mod tests { use chrono::NaiveDate; let epoch = NaiveDate::from_ymd_opt(1970, 1, 1).unwrap(); - let dates = vec![ + let dates = [ NaiveDate::from_ymd_opt(1915, 11, 25).unwrap(), NaiveDate::from_ymd_opt(1964, 4, 8).unwrap(), NaiveDate::from_ymd_opt(1992, 9, 2).unwrap(), @@ -2076,9 +2076,7 @@ mod tests { "col".to_string(), array.clone(), Arc::new(BinaryArray::from_iter_values( - vec![vec![(SMALL_SIZE + 1) as u8]] - .iter() - .map(|v| v.as_slice()), + [vec![(SMALL_SIZE + 1) as u8]].iter().map(|v| v.as_slice()), )), ); }