aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/imagedata.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/dom/imagedata.rs
parent2a594821ba44ba2c13e9a39c6fd8c5a450bd06f4 (diff)
downloadservo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.tar.gz
servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.zip
Modify `script` to prevent further violations of snake_case
Diffstat (limited to 'components/script/dom/imagedata.rs')
-rw-r--r--components/script/dom/imagedata.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/imagedata.rs b/components/script/dom/imagedata.rs
index b09984e267f..e17c82fffd4 100644
--- a/components/script/dom/imagedata.rs
+++ b/components/script/dom/imagedata.rs
@@ -128,14 +128,13 @@ impl ImageData {
))
}
// https://html.spec.whatwg.org/multipage/#pixel-manipulation:dom-imagedata-3
- #[allow(unsafe_code)]
+ #[allow(unsafe_code, non_snake_case)]
pub fn Constructor(global: &GlobalScope, width: u32, height: u32) -> Fallible<DomRoot<Self>> {
unsafe { Self::new_without_jsobject(global, width, height) }
}
// https://html.spec.whatwg.org/multipage/#pixel-manipulation:dom-imagedata-4
- #[allow(unsafe_code)]
- #[allow(unused_variables)]
+ #[allow(unsafe_code, unused_variables, non_snake_case)]
pub unsafe fn Constructor_(
cx: JSContext,
global: &GlobalScope,