mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
Reformat from_jsval implementation for unions.
This commit is contained in:
parent
6ef5894f01
commit
b29ffb1c4c
1 changed files with 2 additions and 1 deletions
|
@ -3953,7 +3953,8 @@ class CGUnionConversionStruct(CGThing):
|
|||
method = CGWrapper(
|
||||
CGIndenter(CGList(conversions, "\n\n")),
|
||||
pre="unsafe fn from_jsval(cx: *mut JSContext,\n"
|
||||
" value: HandleValue, _option: ())"
|
||||
" value: HandleValue,\n"
|
||||
" _option: ())\n"
|
||||
" -> Result<ConversionResult<%s>, ()> {\n" % self.type,
|
||||
post="\n}")
|
||||
return CGWrapper(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue