diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-18 01:29:26 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-18 14:22:15 +0530 |
commit | f7db4b7f8011239f01c3ba2e5e402c866fbe68fb (patch) | |
tree | a57f171e34f1df63302eeee5e7b7544baf461158 /components/script/dom/dommatrix.rs | |
parent | 2a594821ba44ba2c13e9a39c6fd8c5a450bd06f4 (diff) | |
download | servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.tar.gz servo-f7db4b7f8011239f01c3ba2e5e402c866fbe68fb.zip |
Modify `script` to prevent further violations of snake_case
Diffstat (limited to 'components/script/dom/dommatrix.rs')
-rw-r--r-- | components/script/dom/dommatrix.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/dommatrix.rs b/components/script/dom/dommatrix.rs index c9cc366e8ec..0f6d2ae2cd2 100644 --- a/components/script/dom/dommatrix.rs +++ b/components/script/dom/dommatrix.rs @@ -27,6 +27,7 @@ pub struct DOMMatrix { parent: DOMMatrixReadOnly, } +#[allow(non_snake_case)] impl DOMMatrix { #[allow(unrooted_must_root)] pub fn new(global: &GlobalScope, is2D: bool, matrix: Transform3D<f64>) -> DomRoot<Self> { @@ -74,7 +75,7 @@ impl DOMMatrix { } pub fn from_readonly(global: &GlobalScope, ro: &DOMMatrixReadOnly) -> DomRoot<Self> { - Self::new(global, ro.is_2d(), ro.matrix().clone()) + Self::new(global, ro.is2D(), ro.matrix().clone()) } // https://drafts.fxtf.org/geometry-1/#dom-dommatrix-fromfloat32array @@ -102,6 +103,7 @@ impl DOMMatrix { } } +#[allow(non_snake_case)] impl DOMMatrixMethods for DOMMatrix { // https://drafts.fxtf.org/geometry-1/#dom-dommatrixreadonly-m11 fn M11(&self) -> f64 { |