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

@ -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,