aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textdecoder.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-24 22:14:45 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-03-25 00:04:43 +0100
commitc2f8b0468a65fa36c04ce7ea85fc137c63fca0aa (patch)
treebd4c9400b59f1324b8734f4d30d509be55256e4f /components/script/dom/textdecoder.rs
parent2f94e0d2a8c79f999e64231d2dbce5582ef1a689 (diff)
downloadservo-c2f8b0468a65fa36c04ce7ea85fc137c63fca0aa.tar.gz
servo-c2f8b0468a65fa36c04ce7ea85fc137c63fca0aa.zip
Update mozjs.
Diffstat (limited to 'components/script/dom/textdecoder.rs')
-rw-r--r--components/script/dom/textdecoder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/textdecoder.rs b/components/script/dom/textdecoder.rs
index 38efa977e7f..3c061322f07 100644
--- a/components/script/dom/textdecoder.rs
+++ b/components/script/dom/textdecoder.rs
@@ -74,8 +74,8 @@ impl TextDecoderMethods for TextDecoder {
match input {
Some(arr) => {
let vec: Vec<u8> = match arr {
- ArrayBufferViewOrArrayBuffer::ArrayBufferView(mut a) => a.to_vec(),
- ArrayBufferViewOrArrayBuffer::ArrayBuffer(mut a) => a.to_vec()
+ ArrayBufferViewOrArrayBuffer::ArrayBufferView(ref a) => a.to_vec(),
+ ArrayBufferViewOrArrayBuffer::ArrayBuffer(ref a) => a.to_vec()
};
let s = if self.fatal {
match self.encoding.decode_without_bom_handling_and_without_replacement(&vec) {