Slice some fixed-size arrays.

This commit is contained in:
Ms2ger 2015-01-04 11:39:07 +01:00
parent af9a8bdc73
commit 121904dd89
3 changed files with 4 additions and 4 deletions

View file

@ -674,7 +674,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
default = "None"
else:
assert defaultValue.type.tag() == IDLType.Tags.domstring
value = "str::from_utf8(data).unwrap().into_string()"
value = "str::from_utf8(&data).unwrap().into_string()"
if type.nullable():
value = "Some(%s)" % value