Private
Public Access
1
0

Clippy, warnings fix

This commit is contained in:
2024-06-14 20:26:56 -07:00
parent cabd3b502a
commit da36d9da91
3 changed files with 7 additions and 7 deletions

View File

@@ -64,8 +64,8 @@ impl JwtToken {
exp.parse().unwrap()
});
let timestamp = chrono::NaiveDateTime::from_timestamp_opt(exp, 0).unwrap();
let expiration_date = DateTime::<Utc>::from_utc(timestamp, Utc);
let timestamp = DateTime::from_timestamp(exp, 0).unwrap().naive_utc();
let expiration_date = DateTime::from_naive_utc_and_offset(timestamp, Utc);
Ok(JwtToken {
header,