From bbb886fa7a18ceae62511f33d09c02ce18790d03 Mon Sep 17 00:00:00 2001 From: Jonathan Chen Date: Sun, 10 Nov 2024 23:34:11 -0500 Subject: [PATCH] fixes --- Cargo.toml | 1 - test-utils/Cargo.toml | 2 +- test-utils/src/array_gen/primitive.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d1a28fb08cac..91f09102ce48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,7 +94,6 @@ async-trait = "0.1.73" bigdecimal = "=0.4.1" bytes = "1.4" chrono = { version = "0.4.38", default-features = false } -chrono-tz = { version = "0.10.0", default-features = false } ctor = "0.2.0" dashmap = "6.0.1" datafusion = { path = "datafusion/core", version = "43.0.0", default-features = false } diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml index 128557fe7693..d2763f507ffa 100644 --- a/test-utils/Cargo.toml +++ b/test-utils/Cargo.toml @@ -27,7 +27,7 @@ workspace = true [dependencies] arrow = { workspace = true } -chrono-tz = { workspace = true } +chrono-tz = { version = "0.10.0", default-features = false } datafusion-common = { workspace = true, default-features = true } env_logger = { workspace = true } paste = "1.0.15" diff --git a/test-utils/src/array_gen/primitive.rs b/test-utils/src/array_gen/primitive.rs index 41edcfdd2add..bfc151b43dbe 100644 --- a/test-utils/src/array_gen/primitive.rs +++ b/test-utils/src/array_gen/primitive.rs @@ -106,7 +106,7 @@ impl PrimitiveArrayGenerator { // Allows for timezones + None let mut timezone_options: Vec> = vec![None]; - timezone_options.extend(TZ_VARIANTS.iter().map(|tz| Some(tz))); + timezone_options.extend(TZ_VARIANTS.iter().map(Some)); let selected_option = timezone_options.choose(&mut rng).cloned().flatten(); // random timezone/None