diff options
Diffstat (limited to 'components/script/fetch.rs')
-rw-r--r-- | components/script/fetch.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/fetch.rs b/components/script/fetch.rs index de8c546971b..e7236e6319f 100644 --- a/components/script/fetch.rs +++ b/components/script/fetch.rs @@ -127,7 +127,8 @@ fn request_init_from_request(request: NetTraitsRequest) -> RequestBuilder { } /// <https://fetch.spec.whatwg.org/#fetch-method> -#[allow(crown::unrooted_must_root, non_snake_case)] +#[allow(non_snake_case)] +#[cfg_attr(crown, allow(crown::unrooted_must_root))] pub(crate) fn Fetch( global: &GlobalScope, input: RequestInfo, @@ -204,7 +205,7 @@ impl FetchResponseListener for FetchContext { // TODO } - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] fn process_response( &mut self, _: RequestId, |