diff options
Diffstat (limited to 'components/script/dom/textdecoder.rs')
-rw-r--r-- | components/script/dom/textdecoder.rs | 4 |
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) { |