Skip to content

Commit

Permalink
fix(parquet): clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-brobot committed Apr 18, 2024
1 parent 26de22c commit d365329
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions parquet/src/arrow/arrow_writer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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()),
)),
);
}
Expand Down

0 comments on commit d365329

Please sign in to comment.