Skip to content

Commit

Permalink
fix: lint error of deprecated function
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Sep 14, 2024
1 parent 3eb39bb commit 9965440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trust/sigstore/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ mod tests {
fn test_is_timerange_valid() {
fn range_from(start: i64, end: i64) -> TimeRange {
let base = chrono::Utc::now();
let start: SystemTime = (base + chrono::TimeDelta::seconds(start)).into();
let end: SystemTime = (base + chrono::TimeDelta::seconds(end)).into();
let start: SystemTime = (base + chrono::TimeDelta::try_seconds(start).unwrap()).into();
let end: SystemTime = (base + chrono::TimeDelta::try_seconds(end).unwrap()).into();

TimeRange {
start: Some(start.into()),
Expand Down

0 comments on commit 9965440

Please sign in to comment.