aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2020-01-20 04:05:27 -0500
committerGitHub <noreply@github.com>2020-01-20 04:05:27 -0500
commit74d1f02a6a5668d64ea9f831e514b281d1a16864 (patch)
treec5e24513f2d3aec33caf3ce47ade0fa331c440c5 /components/script/script_module.rs
parent544c41b51f3406544329f83ccea41205eff5a507 (diff)
parentf7db4b7f8011239f01c3ba2e5e402c866fbe68fb (diff)
downloadservo-74d1f02a6a5668d64ea9f831e514b281d1a16864.tar.gz
servo-74d1f02a6a5668d64ea9f831e514b281d1a16864.zip
Auto merge of #25547 - kunalmohan:25531-SnakeCase, r=jdm
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
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(