Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Blizzara committed Aug 21, 2024
1 parent 5347f30 commit 52c0bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/substrait/src/logical_plan/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ mod test {
round_trip_literal(ScalarValue::UInt64(Some(u64::MIN)))?;
round_trip_literal(ScalarValue::UInt64(Some(u64::MAX)))?;

for (ts, tz) in vec![
for (ts, tz) in [
(Some(12345), None),
(None, None),
(Some(12345), Some("UTC".into())),
Expand Down Expand Up @@ -2339,7 +2339,7 @@ mod test {
round_trip_type(DataType::Float32)?;
round_trip_type(DataType::Float64)?;

for tz in vec![None, Some("UTC".into())] {
for tz in [None, Some("UTC".into())] {
round_trip_type(DataType::Timestamp(TimeUnit::Second, tz.clone()))?;
round_trip_type(DataType::Timestamp(TimeUnit::Millisecond, tz.clone()))?;
round_trip_type(DataType::Timestamp(TimeUnit::Microsecond, tz.clone()))?;
Expand Down

0 comments on commit 52c0bec

Please sign in to comment.