Clippy, warnings fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user