Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 committed Aug 30, 2023
1 parent bda955b commit 9c735f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions icelake/src/types/arrow/from_arrow/to_primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{types::PrimitiveValue, Error, ErrorKind};
use arrow_buffer::i256;
use arrow_schema::DataType;
use arrow_schema::{IntervalUnit, TimeUnit};
use chrono::{DateTime, NaiveDate, NaiveDateTime, NaiveTime, Utc};
use chrono::{NaiveDate, NaiveDateTime, NaiveTime, Utc, TimeZone};

/// Help to convert arrow primitive value to iceberg primitive value.
/// We implement this trait in the `ArrowPrimitiveType::Naive` type.
Expand Down Expand Up @@ -169,8 +169,8 @@ impl ToPrimitiveValue for i64 {
if with_tz.is_some() {
Ok(PrimitiveValue::Timestamp(dt))
} else {
Ok(PrimitiveValue::Timestampz(DateTime::<Utc>::from_utc(
dt, Utc,
Ok(PrimitiveValue::Timestampz(Utc.from_utc_datetime(
&dt
)))
}
}
Expand Down

0 comments on commit 9c735f8

Please sign in to comment.