mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Slice some fixed-size arrays.
This commit is contained in:
parent
af9a8bdc73
commit
121904dd89
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue