mach fmt after updating toolchain to 2021-05-18

Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
This commit is contained in:
Dominic Cooney 2021-05-22 23:31:01 +09:00
parent 7d997748da
commit a68c336e55

View file

@ -230,8 +230,8 @@ fn get_response_expiry(response: &Response) -> Duration {
let max_heuristic = Duration::hours(24) - age;
let heuristic_freshness = if let Some(last_modified) =
// If the response has a Last-Modified header field,
// caches are encouraged to use a heuristic expiration value
// that is no more than some fraction of the interval since that time.
// caches are encouraged to use a heuristic expiration value
// that is no more than some fraction of the interval since that time.
response.headers.typed_get::<LastModified>()
{
let current = time::now().to_timespec();