Skip to content

Commit

Permalink
Fix new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Mar 22, 2024
1 parent 78762dc commit a1ff3f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arrow-csv/src/reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion arrow-row/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion parquet/src/arrow/arrow_writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a1ff3f8

Please sign in to comment.