diff options
author | Gae24 <96017547+Gae24@users.noreply.github.com> | 2024-09-21 15:58:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 13:58:31 +0000 |
commit | f986160ed405817160e89b178e8e3b372132e792 (patch) | |
tree | a8d0df12ec630bfeded55e11e1c27b7816dca7bc /components/net/http_cache.rs | |
parent | 4e4b137eaa242fea4356e30b36f9ef3262781968 (diff) | |
download | servo-f986160ed405817160e89b178e8e3b372132e792.tar.gz servo-f986160ed405817160e89b178e8e3b372132e792.zip |
fix many clippy warnings (#33510)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Diffstat (limited to 'components/net/http_cache.rs')
-rw-r--r-- | components/net/http_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_cache.rs b/components/net/http_cache.rs index c6049155560..c8ec2be5f62 100644 --- a/components/net/http_cache.rs +++ b/components/net/http_cache.rs @@ -182,7 +182,7 @@ fn calculate_response_age(response: &Response) -> Duration { .get(header::AGE) .and_then(|age_header| age_header.to_str().ok()) .and_then(|age_string| age_string.parse::<u64>().ok()) - .map(|seconds| Duration::from_secs(seconds)) + .map(Duration::from_secs) .unwrap_or_default() } |