aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-01-18 01:29:26 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-01-18 14:22:15 +0530
commitf7db4b7f8011239f01c3ba2e5e402c866fbe68fb (patch)
treea57f171e34f1df63302eeee5e7b7544baf461158 /components/script/script_module.rs
parent2a594821ba44ba2c13e9a39c6fd8c5a450bd06f4 (diff)
downloadservo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.tar.gz
servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.zip
Modify `script` to prevent further violations of snake_case
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r--components/script/script_module.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index 4bb60f5a233..91fca91e6a0 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -1050,7 +1050,7 @@ impl ResourceTimingListener for ModuleContext {
impl PreInvoke for ModuleContext {}
-#[allow(unsafe_code)]
+#[allow(unsafe_code, non_snake_case)]
/// A function to register module hooks (e.g. listening on resolving modules,
/// getting module metadata, getting script private reference and resolving dynamic import)
pub unsafe fn EnsureModuleHooksInitialized(rt: *mut JSRuntime) {
@@ -1065,7 +1065,7 @@ pub unsafe fn EnsureModuleHooksInitialized(rt: *mut JSRuntime) {
SetModuleDynamicImportHook(rt, None);
}
-#[allow(unsafe_code)]
+#[allow(unsafe_code, non_snake_case)]
/// https://tc39.github.io/ecma262/#sec-hostresolveimportedmodule
/// https://html.spec.whatwg.org/multipage/#hostresolveimportedmodule(referencingscriptormodule%2C-specifier)
unsafe extern "C" fn HostResolveImportedModule(