mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 01:11: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 Ok(datetime) = date.parse::<HttpDate>() {
|
||||
let system_time = SystemTime::from(datetime);
|
||||
let datetime: SystemTime = system_time.into();
|
||||
if datetime + expires_after < self.parsed_at {
|
||||
if system_time + expires_after < self.parsed_at {
|
||||
return Err(ValidateError::Expired);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue