Skip to content

Commit

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

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

Expand Down

0 comments on commit a3be868

Please sign in to comment.