aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-08-14 20:35:13 +0200
committerGitHub <noreply@github.com>2024-08-14 18:35:13 +0000
commit057873c94a016b00d205f342d8929eb50365ac91 (patch)
tree22eb0601b5a4d0fa63cbfa7a96b20904bce1b556 /components/net/fetch
parentc438bfddd0528c3b3b0e5775be151d5d8c3e873e (diff)
downloadservo-057873c94a016b00d205f342d8929eb50365ac91.tar.gz
servo-057873c94a016b00d205f342d8929eb50365ac91.zip
Remove unused constant from `components/net/fetch/methods.rs` (#33054)
This was revealed by the recent switch to `LazyLock`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/net/fetch')
-rw-r--r--components/net/fetch/methods.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/net/fetch/methods.rs b/components/net/fetch/methods.rs
index 06672e41fe1..369644a4c7c 100644
--- a/components/net/fetch/methods.rs
+++ b/components/net/fetch/methods.rs
@@ -7,7 +7,7 @@ use std::fs::File;
use std::io::{self, BufReader, Seek, SeekFrom};
use std::ops::Bound;
use std::sync::atomic::Ordering;
-use std::sync::{Arc, LazyLock, Mutex};
+use std::sync::{Arc, Mutex};
use std::{mem, str};
use base64::engine::general_purpose;
@@ -52,9 +52,6 @@ use crate::http_loader::{
use crate::local_directory_listing;
use crate::subresource_integrity::is_response_integrity_valid;
-static X_CONTENT_TYPE_OPTIONS: LazyLock<HeaderName> =
- LazyLock::new(|| HeaderName::from_static("x-content-type-options"));
-
pub type Target<'a> = &'a mut (dyn FetchTaskTarget + Send);
#[derive(Clone, Deserialize, Serialize)]