aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r--components/script/fetch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs
index e7f045895d8..d03976bf94d 100644
--- a/components/script/fetch.rs
+++ b/components/script/fetch.rs
@@ -132,7 +132,7 @@ fn request_init_from_request(request: NetTraitsRequest) -> RequestBuilder {
}
// https://fetch.spec.whatwg.org/#fetch-method
-#[allow(unrooted_must_root)]
+#[allow(unrooted_must_root, non_snake_case)]
pub fn Fetch(
global: &GlobalScope,
input: RequestInfo,
@@ -349,7 +349,7 @@ pub fn load_whole_resource(
}
/// https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request
-pub(crate) fn create_a_potential_CORS_request(
+pub(crate) fn create_a_potential_cors_request(
url: ServoUrl,
destination: Destination,
cors_setting: Option<CorsSettings>,