aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests/http_cache.rs
diff options
context:
space:
mode:
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.