mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
fix many clippy warnings (#33510)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
4e4b137eaa
commit
f986160ed4
13 changed files with 29 additions and 34 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue