Modify script to prevent further violations of snake_case

This commit is contained in:
Kunal Mohan 2020-01-18 01:29:26 +05:30
parent 2a594821ba
commit f7db4b7f80
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
135 changed files with 205 additions and 54 deletions

View file

@ -743,7 +743,7 @@ fn parse_open_feature_boolean(tokenized_features: &IndexMap<String, String>, nam
// This is only called from extern functions,
// there's no use using the lifetimed handles here.
// https://html.spec.whatwg.org/multipage/#accessing-other-browsing-contexts
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe fn GetSubframeWindowProxy(
cx: *mut JSContext,
proxy: RawHandleObject,
@ -797,7 +797,7 @@ unsafe fn GetSubframeWindowProxy(
None
}
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe extern "C" fn getOwnPropertyDescriptor(
cx: *mut JSContext,
proxy: RawHandleObject,
@ -828,7 +828,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor(
true
}
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe extern "C" fn defineProperty(
cx: *mut JSContext,
proxy: RawHandleObject,
@ -1044,7 +1044,7 @@ unsafe extern "C" fn delete_xorigin(
throw_security_error(cx)
}
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe extern "C" fn getOwnPropertyDescriptor_xorigin(
cx: *mut JSContext,
proxy: RawHandleObject,
@ -1056,7 +1056,7 @@ unsafe extern "C" fn getOwnPropertyDescriptor_xorigin(
found && getOwnPropertyDescriptor(cx, proxy, id, desc)
}
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe extern "C" fn defineProperty_xorigin(
cx: *mut JSContext,
_: RawHandleObject,
@ -1067,7 +1067,7 @@ unsafe extern "C" fn defineProperty_xorigin(
throw_security_error(cx)
}
#[allow(unsafe_code)]
#[allow(unsafe_code, non_snake_case)]
unsafe extern "C" fn preventExtensions_xorigin(
cx: *mut JSContext,
_: RawHandleObject,