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>
This commit is contained in:
Martin Robinson 2024-08-14 20:35:13 +02:00 committed by GitHub
parent c438bfddd0
commit 057873c94a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)]