aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textdecoder.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/textdecoder.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/textdecoder.rs')
-rw-r--r--components/script/dom/textdecoder.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/textdecoder.rs b/components/script/dom/textdecoder.rs
index 84d07abf391..484ac269ec6 100644
--- a/components/script/dom/textdecoder.rs
+++ b/components/script/dom/textdecoder.rs
@@ -18,6 +18,7 @@ use std::borrow::ToOwned;
use std::cell::{Cell, RefCell};
#[dom_struct]
+#[allow(non_snake_case)]
pub struct TextDecoder {
reflector_: Reflector,
encoding: &'static Encoding,
@@ -29,6 +30,7 @@ pub struct TextDecoder {
do_not_flush: Cell<bool>,
}
+#[allow(non_snake_case)]
impl TextDecoder {
fn new_inherited(encoding: &'static Encoding, fatal: bool, ignoreBOM: bool) -> TextDecoder {
TextDecoder {