From f986160ed405817160e89b178e8e3b372132e792 Mon Sep 17 00:00:00 2001 From: Gae24 <96017547+Gae24@users.noreply.github.com> Date: Sat, 21 Sep 2024 15:58:31 +0200 Subject: fix many clippy warnings (#33510) Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com> --- components/net/http_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/net/http_cache.rs') 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::().ok()) - .map(|seconds| Duration::from_secs(seconds)) + .map(Duration::from_secs) .unwrap_or_default() } -- cgit v1.2.3