aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests/http_cache.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-03-10 16:34:16 +0100
committerGitHub <noreply@github.com>2024-03-10 15:34:16 +0000
commit67b277c992d59dfed7d9177d4a62a1517d28a5b5 (patch)
tree951a1e41c34e05b2e72c5ae3065837a3db978624 /components/net/tests/http_cache.rs
parent099bb0fa194ad9a27c6e3512163eaaf42d91bbe6 (diff)
downloadservo-67b277c992d59dfed7d9177d4a62a1517d28a5b5.tar.gz
servo-67b277c992d59dfed7d9177d4a62a1517d28a5b5.zip
clippy: fix warnings in components/net (#31564)
* clippy: fix some warnings in components/net * fix: review comments * fix: tidy
Diffstat (limited to 'components/net/tests/http_cache.rs')
-rw-r--r--components/net/tests/http_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/tests/http_cache.rs b/components/net/tests/http_cache.rs
index 30a4052928a..4acdc402043 100644
--- a/components/net/tests/http_cache.rs
+++ b/components/net/tests/http_cache.rs
@@ -33,7 +33,7 @@ fn test_refreshing_resource_sets_done_chan_the_appropriate_value() {
response
.headers
.insert(EXPIRES, HeaderValue::from_str("-10").unwrap());
- let mut cache = HttpCache::new();
+ let mut cache = HttpCache::default();
response_bodies.iter().for_each(|body| {
*response.body.lock().unwrap() = body.clone();
// First, store the 'normal' response.