mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-25 02:41:00 +00:00
Remove unneded conversion
This commit is contained in:
parent
cefea4b7ec
commit
fa76edf777
1 changed files with 1 additions and 2 deletions
|
@ -192,8 +192,7 @@ impl Unvalidated {
|
||||||
if let Some(date) = self.date {
|
if let Some(date) = self.date {
|
||||||
if let Ok(datetime) = date.parse::<HttpDate>() {
|
if let Ok(datetime) = date.parse::<HttpDate>() {
|
||||||
let system_time = SystemTime::from(datetime);
|
let system_time = SystemTime::from(datetime);
|
||||||
let datetime: SystemTime = system_time.into();
|
if system_time + expires_after < self.parsed_at {
|
||||||
if datetime + expires_after < self.parsed_at {
|
|
||||||
return Err(ValidateError::Expired);
|
return Err(ValidateError::Expired);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue