diff options
author | eri <eri@inventati.org> | 2024-03-10 16:34:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 15:34:16 +0000 |
commit | 67b277c992d59dfed7d9177d4a62a1517d28a5b5 (patch) | |
tree | 951a1e41c34e05b2e72c5ae3065837a3db978624 /components/net/tests/http_cache.rs | |
parent | 099bb0fa194ad9a27c6e3512163eaaf42d91bbe6 (diff) | |
download | servo-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.rs | 2 |
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. |