Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Jul 22, 2024
1 parent a3be868 commit dfb8b24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/date_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ impl DateTime {
}

pub fn timestamp_2_utc(time_stamp: i64) -> SdResult<Self> {
let time =
OffsetDateTime::from_unix_timestamp(time_stamp).map_err(ShadowError::new)?;
let time = OffsetDateTime::from_unix_timestamp(time_stamp).map_err(ShadowError::new)?;
Ok(DateTime::Utc(time))
}

Expand Down

0 comments on commit dfb8b24

Please sign in to comment.