Fix and disable some compile warnings.

This commit is contained in:
Ms2ger 2014-06-06 20:56:44 +02:00
parent eae9b94399
commit 3e3536cf39
6 changed files with 6 additions and 2 deletions

View file

@ -762,6 +762,6 @@ impl<'a> PrivateXMLHttpRequestHelpers for JSRef<'a, XMLHttpRequest> {
}
// According to Simon, decode() should never return an error, so unwrap()ing
// the result should be fine. XXXManishearth have a closer look at this later
encoding.decode(self.response.as_slice(), DecodeReplace).unwrap().to_owned()
encoding.decode(self.response.as_slice(), DecodeReplace).unwrap().to_string()
}
}