diff --git a/arrow-csv/src/reader/mod.rs b/arrow-csv/src/reader/mod.rs index 83c8965fdf8a..5e0530289623 100644 --- a/arrow-csv/src/reader/mod.rs +++ b/arrow-csv/src/reader/mod.rs @@ -1877,7 +1877,7 @@ mod tests { #[test] fn test_bounded() { let schema = Schema::new(vec![Field::new("int", DataType::UInt32, false)]); - let data = vec![ + let data = [ vec!["0"], vec!["1"], vec!["2"], @@ -1919,7 +1919,7 @@ mod tests { #[test] fn test_empty_projection() { let schema = Schema::new(vec![Field::new("int", DataType::UInt32, false)]); - let data = vec![vec!["0"], vec!["1"]]; + let data = [vec!["0"], vec!["1"]]; let data = data .iter() diff --git a/arrow-row/src/lib.rs b/arrow-row/src/lib.rs index c2f5293f94c8..037ed404adca 100644 --- a/arrow-row/src/lib.rs +++ b/arrow-row/src/lib.rs @@ -2223,7 +2223,7 @@ mod tests { let first = Int32Array::from(vec![None, Some(2), Some(4)]); let second = Int32Array::from(vec![Some(2), None, Some(4)]); - let arrays = vec![Arc::new(first) as ArrayRef, Arc::new(second) as ArrayRef]; + let arrays = [Arc::new(first) as ArrayRef, Arc::new(second) as ArrayRef]; for array in arrays.iter() { rows.clear(); diff --git a/parquet/src/arrow/arrow_writer/mod.rs b/parquet/src/arrow/arrow_writer/mod.rs index 18c8617e07e6..7206e6a6907d 100644 --- a/parquet/src/arrow/arrow_writer/mod.rs +++ b/parquet/src/arrow/arrow_writer/mod.rs @@ -1200,7 +1200,7 @@ mod tests { let schema = Schema::new(vec![string_field, binary_field]); let raw_string_values = vec!["foo", "bar", "baz", "quux"]; - let raw_binary_values = vec![ + let raw_binary_values = [ b"foo".to_vec(), b"bar".to_vec(), b"baz".to_vec(),